]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Fix return status when checking if module loading is disabled
authorRuss Allbery <rra@debian.org>
Sat, 25 Dec 2010 01:15:34 +0000 (17:15 -0800)
committerRuss Allbery <rra@debian.org>
Sat, 25 Dec 2010 01:15:34 +0000 (17:15 -0800)
A return status of 0 is success in shell.

debian/openafs-client.init

index aeb94e696598f29b6e7bdd689ef1c230604479e7..63754691158040956a39561542c7d5c08735f357 100755 (executable)
@@ -54,9 +54,9 @@ is_on() {
 is_loading_disabled() {
     loading=`cat /proc/sys/kernel/modules_disabled`
     if [ "$loading" = 1 ] ; then
-        return 1
-    else
         return 0
+    else
+        return 1
     fi
 }