From 83623f971f043558094270904a74acee002d8c56 Mon Sep 17 00:00:00 2001 From: Christian Heim Date: Fri, 18 May 2007 07:39:12 +0000 Subject: Really make the init-script busybox/dash compatible (thanks to Mike Arthur in #178781). (Portage version: 2.1.2.7) --- sys-apps/lm_sensors/ChangeLog | 6 +++++- sys-apps/lm_sensors/files/lm_sensors-init.d | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'sys-apps') 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 files/lm_sensors-init.d: + Really make the init-script busybox/dash compatible (thanks to Mike Arthur + in #178781). 17 May 2007; Christian Heim 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 -- cgit v1.2.3-65-gdbad