]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 b4fb43550c093f26f102dcecc65f58918c00400a..4897a3dffb1f4a8a322ef1fe33b06e4dccaf2b50 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
 }