summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-05-18 07:39:12 +0000
committerChristian Heim <phreak@gentoo.org>2007-05-18 07:39:12 +0000
commit83623f971f043558094270904a74acee002d8c56 (patch)
tree6be43f9b374897f183f2f3b52fe400cf8860e5db /sys-apps
parentVersion bump. (diff)
downloadgentoo-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')
-rw-r--r--sys-apps/lm_sensors/ChangeLog6
-rw-r--r--sys-apps/lm_sensors/files/lm_sensors-init.d8
2 files changed, 9 insertions, 5 deletions
diff --git a/sys-apps/lm_sensors/ChangeLog b/sys-apps/lm_sensors/ChangeLog
index db4e8d1168b9..c972028e262f 100644
--- a/sys-apps/lm_sensors/ChangeLog
+++ b/sys-apps/lm_sensors/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/lm_sensors
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.69 2007/05/17 07:34:09 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.70 2007/05/18 07:39:12 phreak Exp $
+
+ 18 May 2007; Christian Heim <phreak@gentoo.org> files/lm_sensors-init.d:
+ Really make the init-script busybox/dash compatible (thanks to Mike Arthur
+ <mike at mikearthur.co.uk> in #178781).
17 May 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
Assigning sys-apps/lm_sensors directly to mobile at gentoo.org.
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