diff options
author | Christian Heim <phreak@gentoo.org> | 2007-05-18 07:39:12 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-05-18 07:39:12 +0000 |
commit | c2bd570c1e864bb09b962f0f21230ed8119addc9 (patch) | |
tree | 9578ce83eb617ac71f3a39ac5f14a0d327b1b9f0 /sys-apps/lm_sensors/files | |
parent | Version bump. (diff) | |
download | historical-c2bd570c1e864bb09b962f0f21230ed8119addc9.tar.gz historical-c2bd570c1e864bb09b962f0f21230ed8119addc9.tar.bz2 historical-c2bd570c1e864bb09b962f0f21230ed8119addc9.zip |
Really make the init-script busybox/dash compatible (thanks to Mike Arthur <mike at mikearthur.co.uk> in #178781).
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'sys-apps/lm_sensors/files')
-rw-r--r-- | sys-apps/lm_sensors/files/lm_sensors-init.d | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-apps/lm_sensors/files/lm_sensors-init.d b/sys-apps/lm_sensors/files/lm_sensors-init.d index 73656c228ecb..5c08441c7467 100644 --- a/sys-apps/lm_sensors/files/lm_sensors-init.d +++ b/sys-apps/lm_sensors/files/lm_sensors-init.d @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-init.d,v 1.1 2007/05/17 07:31:41 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-init.d,v 1.2 2007/05/18 07:39:12 phreak Exp $ checkconfig() { if [ ! -f /etc/conf.d/lm_sensors ]; then @@ -56,7 +56,7 @@ start() { ebegin " Loading ${module}" modprobe ${module} ${module_args} &> /dev/null eend $? - i=$((${i}+1)) + i=$(($i+1)) done fi @@ -85,11 +85,11 @@ stop() { if [ -z "${module}" ] ; then break fi - i=$((i+1)) + i=$(($i+1)) done while [ ${i} -gt 0 ]; do - i=$((i-1)) + i=$(($i-1)) module=`eval echo '$'MODULE_${i}` ebegin " Unloading ${module}" rmmod ${module} &> /dev/null |