]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
40network/parse-ip-opts.sh: "local" can only be used in functions
authorHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 14:14:34 +0000 (15:14 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 15:13:20 +0000 (16:13 +0100)
modules.d/40network/parse-ip-opts.sh

index 77dbaf07b78556cf288063056024535650260c86..c97941e27c09cfdee4a73fcf9d8df888cb0449db 100755 (executable)
@@ -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