From: Russ Allbery Date: Sat, 25 Dec 2010 01:21:51 +0000 (-0800) Subject: Fix module loading variable name in openafs-client init script X-Git-Tag: debian/1.6.0.pre1-1~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=863092b77eadcf6da9038b9da656f67a3146b931;p=packages%2Fo%2Fopenafs.git Fix module loading variable name in openafs-client init script $disabled is better since 1 means it is disabled. --- diff --git a/debian/openafs-client.init b/debian/openafs-client.init index c8ccd0cdf..bdc11ce00 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() { - 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