From: Russ Allbery Date: Sat, 25 Dec 2010 01:05:51 +0000 (-0800) Subject: Fix suppression of module unloading in openafs-client init script X-Git-Tag: debian/1.6.0.pre1-1~12 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9b0a799686a7ffaad27da44828e4243b43a22369;p=packages%2Fo%2Fopenafs.git Fix suppression of module unloading in openafs-client init script Use consistent variable names and remove a bashism. --- diff --git a/debian/openafs-client.init b/debian/openafs-client.init index af3ee644d..aeb94e696 100755 --- a/debian/openafs-client.init +++ b/debian/openafs-client.init @@ -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