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 | 83623f971f043558094270904a74acee002d8c56 (patch) | |
tree | 6be43f9b374897f183f2f3b52fe400cf8860e5db /sys-apps/lm_sensors/files | |
parent | Version bump. (diff) | |
download | gentoo-2-83623f971f043558094270904a74acee002d8c56.tar.gz gentoo-2-83623f971f043558094270904a74acee002d8c56.tar.bz2 gentoo-2-83623f971f043558094270904a74acee002d8c56.zip |
Really make the init-script busybox/dash compatible (thanks to Mike Arthur <mike at mikearthur.co.uk> in #178781).
(Portage version: 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 |