]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Fix suppression of module unloading in openafs-client init script
authorRuss Allbery <rra@debian.org>
Sat, 25 Dec 2010 01:05:51 +0000 (17:05 -0800)
committerRuss Allbery <rra@debian.org>
Sat, 25 Dec 2010 01:05:51 +0000 (17:05 -0800)
Use consistent variable names and remove a bashism.

debian/openafs-client.init

index af3ee644db44f5d98c047f7c8a335e6ce3d6eca1..aeb94e696598f29b6e7bdd689ef1c230604479e7 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() {
-    disabled=`cat /proc/sys/kernel/modules_disabled`
-    if [ "$loading" == 1 ] ; then
+    loading=`cat /proc/sys/kernel/modules_disabled`
+    if [ "$loading" = 1 ] ; then
         return 1
     else
         return 0