From: Russ Allbery Date: Sat, 25 Dec 2010 01:15:34 +0000 (-0800) Subject: Fix return status when checking if module loading is disabled X-Git-Tag: debian/1.6.0.pre1-1~11 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d75a3b77f003a80dbbcd3ec19aec809e38e9d157;p=packages%2Fo%2Fopenafs.git Fix return status when checking if module loading is disabled A return status of 0 is success in shell. --- diff --git a/debian/openafs-client.init b/debian/openafs-client.init index aeb94e696..637546911 100755 --- a/debian/openafs-client.init +++ b/debian/openafs-client.init @@ -54,9 +54,9 @@ is_on() { is_loading_disabled() { loading=`cat /proc/sys/kernel/modules_disabled` if [ "$loading" = 1 ] ; then - return 1 - else return 0 + else + return 1 fi }