summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-10-09 13:18:59 +0200
committerHarald Hoyer <harald@redhat.com>2009-10-09 13:18:59 +0200
commitb26260a0b9c738b2c8f761a02bfd4e2b8325dba4 (patch)
treeeab6274dc4f301f25fb8289220c13e026093eb6d
parentffd0861b7cf374aec6a39459dc6a6c997590a9e6 (diff)
dracut-lib: fixed wait_for_if_up()
-rw-r--r--modules.d/99base/dracut-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
index f9aa2d5..804df0c 100644
--- a/modules.d/99base/dracut-lib.sh
+++ b/modules.d/99base/dracut-lib.sh
@@ -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
}