From 9b0a799686a7ffaad27da44828e4243b43a22369 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Fri, 24 Dec 2010 17:05:51 -0800 Subject: [PATCH] Fix suppression of module unloading in openafs-client init script Use consistent variable names and remove a bashism. --- debian/openafs-client.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5