From: Harald Hoyer Date: Wed, 22 Feb 2012 14:14:34 +0000 (+0100) Subject: 40network/parse-ip-opts.sh: "local" can only be used in functions X-Git-Tag: 017~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edd3262efd0c0aec2ceb6d3037dc2ba912e8ade8;p=thirdparty%2Fdracut.git 40network/parse-ip-opts.sh: "local" can only be used in functions --- diff --git a/modules.d/40network/parse-ip-opts.sh b/modules.d/40network/parse-ip-opts.sh index 77dbaf07b..c97941e27 100755 --- a/modules.d/40network/parse-ip-opts.sh +++ b/modules.d/40network/parse-ip-opts.sh @@ -38,12 +38,13 @@ fi # Count ip= lines to decide whether we need bootdev= or not if [ -z "$NEEDBOOTDEV" ] ; then - local count=0 + count=0 for p in $(getargs ip=); do count=$(( $count + 1 )) done [ $count -gt 1 ] && NEEDBOOTDEV=1 fi +unset count # If needed, check if bootdev= contains anything usable if [ -n "$NEEDBOOTDEV" ] ; then