]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-lib: fixed wait_for_if_up()
authorHarald Hoyer <harald@redhat.com>
Fri, 9 Oct 2009 11:18:59 +0000 (13:18 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 9 Oct 2009 11:18:59 +0000 (13:18 +0200)
modules.d/99base/dracut-lib.sh

index f9aa2d5eaba493d0548196f8d1514770e4acdd87..804df0ca9ac647a06a9a587a4f6fe290d18346fe 100644 (file)
@@ -158,7 +158,7 @@ wait_for_if_up() {
        li=$(ip link show $1)
        [ -z "${li##*state UP*}" ] && return 0
        sleep 0.1
-       cnt=$[cnt+1]
+       cnt=$(($cnt+1))
     done 
     return 1
 }