interpret 'off' as false in getargbool
authorWill Woods <wwoods@redhat.com>
Wed, 11 Jan 2012 17:48:27 +0000 (12:48 -0500)
committerHarald Hoyer <harald@redhat.com>
Fri, 13 Jan 2012 10:50:53 +0000 (11:50 +0100)
Signed-off-by: Will Woods <wwoods@redhat.com>
modules.d/99base/dracut-lib.sh

index b4fb435..4897a3d 100755 (executable)
@@ -124,6 +124,7 @@ getargbool() {
     if [ -n "$_b" ]; then
         [ $_b = "0" ] && return 1
         [ $_b = "no" ] && return 1
+        [ $_b = "off" ] && return 1
     fi
     return 0
 }