From: Guido Guenther Subject: [multipath 3/3] remove bashisms from kpartx_id Date: Sat, 16 Jun 2007 20:07:16 +0200 Message-ID: <11820172373748-git-send-email-agx@sigxcpu.org> References: <11820172361537-git-send-email-agx@sigxcpu.org> <11820172372216-git-send-email-agx@sigxcpu.org> Reply-To: device-mapper development Return-path: In-Reply-To: <11820172372216-git-send-email-agx@sigxcpu.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: dm-devel@redhat.com List-Id: dm-devel.ids diff --git a/kpartx/kpartx_id b/kpartx/kpartx_id index e876b98..81f32bf 100644 --- a/kpartx/kpartx_id +++ b/kpartx/kpartx_id @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # kpartx_id # @@ -43,7 +43,7 @@ dmuuid=${UUID#*-} dmtbl=${UUID%%-*} dmpart=${dmtbl#part} # kpartx types are 'part' -if [ "$dmpart" == "$dmtbl" ] ; then +if [ "$dmpart" = "$dmtbl" ] ; then dmpart= else dmtbl=part @@ -51,7 +51,7 @@ fi # Set the name of the table. We're only interested in dmraid, # multipath, and kpartx tables; everything else is ignored. -if [ "$dmtbl" == "part" ] ; then +if [ "$dmtbl" = "part" ] ; then # The name of the kpartx table is the name of the parent table dmname=$($DMSETUP info -c --noheadings -o name -u $dmuuid) echo "DM_NAME=$dmname" @@ -62,11 +62,11 @@ if [ "$dmtbl" == "part" ] ; then dmdeps=$($DMSETUP deps -u $dmuuid) ;; esac -elif [ "$dmtbl" == "mpath" ] ; then +elif [ "$dmtbl" = "mpath" ] ; then dmname=$tblname # We need the dependencies of the table to figure out the type dmdeps=$($DMSETUP deps -u $UUID) -elif [ "$dmtbl" == "dmraid" ] ; then +elif [ "$dmtbl" = "dmraid" ] ; then dmname=$tblname fi -- 1.5.2.1