]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Fix module loading variable name in openafs-client init script
authorRuss Allbery <rra@debian.org>
Sat, 25 Dec 2010 01:21:51 +0000 (17:21 -0800)
committerRuss Allbery <rra@debian.org>
Sat, 25 Dec 2010 01:21:51 +0000 (17:21 -0800)
$disabled is better since 1 means it is disabled.

debian/openafs-client.init

index c8ccd0cdf747c3919687b6d67fa7d020e3b94cdd..bdc11ce00386e630ae5cd5a9d51f6b80407b3c52 100755 (executable)
@@ -52,8 +52,8 @@ is_on() {
 # Determine if kernel module loading is disabled.  If it's not, don't attempt
 # to stop or restart AFS, since we'll end up in a bad inconsistent state.
 is_loading_disabled() {
-    loading=`cat /proc/sys/kernel/modules_disabled 2>/dev/null`
-    if [ "$loading" = 1 ] ; then
+    disabled=`cat /proc/sys/kernel/modules_disabled 2>/dev/null`
+    if [ "$disabled" = 1 ] ; then
         return 0
     else
         return 1