From: Harald Hoyer Date: Tue, 27 Mar 2012 13:59:35 +0000 (+0200) Subject: 95nbd/nbdroot.sh: removed bashism X-Git-Tag: 018~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26433e9c1f974addeeab7a5829bbe9c56c212055;p=thirdparty%2Fdracut.git 95nbd/nbdroot.sh: removed bashism --- diff --git a/modules.d/95nbd/nbdroot.sh b/modules.d/95nbd/nbdroot.sh index 0e7dd9bd6..765612046 100755 --- a/modules.d/95nbd/nbdroot.sh +++ b/modules.d/95nbd/nbdroot.sh @@ -31,7 +31,7 @@ nbdflags=${root%%:*} nbdopts=${root#*:} # If nbdport not an integer, then assume name based import -if [[ $nbdport != [0-9]* ]]; then +if [ "${nbdport%[0-9]}" = "$nbdport" ]; then nbdport="-N $nbdport" fi