diff options
author | Christian Heim <phreak@gentoo.org> | 2006-07-16 09:18:36 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2006-07-16 09:18:36 +0000 |
commit | f9008a380d9dd953c3da685f004d478883a7d40c (patch) | |
tree | 6fa175273171fc3ce38298bf57c24ebc4f5d6b0b /sys-apps/lm_sensors/files | |
parent | Fix the remaining quoting issues (diff) | |
download | historical-f9008a380d9dd953c3da685f004d478883a7d40c.tar.gz historical-f9008a380d9dd953c3da685f004d478883a7d40c.tar.bz2 historical-f9008a380d9dd953c3da685f004d478883a7d40c.zip |
Fix the init-script to also rmmod i2c-core (#140051 thanks to <lefti at bk.ru>)
Package-Manager: portage-2.1.1_pre3
Diffstat (limited to 'sys-apps/lm_sensors/files')
4 files changed, 20 insertions, 2 deletions
diff --git a/sys-apps/lm_sensors/files/digest-lm_sensors-2.10.0-r1 b/sys-apps/lm_sensors/files/digest-lm_sensors-2.10.0-r1 new file mode 100644 index 000000000000..cd0598b2a998 --- /dev/null +++ b/sys-apps/lm_sensors/files/digest-lm_sensors-2.10.0-r1 @@ -0,0 +1,3 @@ +MD5 6a5327c9e291c5e2bef62e2277bce962 lm_sensors-2.10.0.tar.gz 879631 +RMD160 8bb5dd4fbb9b7fba2f60f8a8d00d7b54231ddf37 lm_sensors-2.10.0.tar.gz 879631 +SHA256 e2fe2c79dc1f219ae85606ad1e556edcd2e55adbabf8bb45dc3c11c00503050d lm_sensors-2.10.0.tar.gz 879631 diff --git a/sys-apps/lm_sensors/files/digest-lm_sensors-2.9.2-r1 b/sys-apps/lm_sensors/files/digest-lm_sensors-2.9.2-r1 new file mode 100644 index 000000000000..48df55c1337f --- /dev/null +++ b/sys-apps/lm_sensors/files/digest-lm_sensors-2.9.2-r1 @@ -0,0 +1,3 @@ +MD5 229f83cfbd081d5e7bd46885efec1c72 lm_sensors-2.9.2.tar.gz 860624 +RMD160 1facd2f05ab31d819b12da73067952d74496fbcb lm_sensors-2.9.2.tar.gz 860624 +SHA256 e40573335a895c88bdc040126fd6bb73199bef0169b2b88c6a1ef916c03803c7 lm_sensors-2.9.2.tar.gz 860624 diff --git a/sys-apps/lm_sensors/files/lm_sensors-2.10.0-lm_sensors-init.d b/sys-apps/lm_sensors/files/lm_sensors-2.10.0-lm_sensors-init.d index 78e40734b6b6..224906885d63 100644 --- a/sys-apps/lm_sensors/files/lm_sensors-2.10.0-lm_sensors-init.d +++ b/sys-apps/lm_sensors/files/lm_sensors-2.10.0-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-2.10.0-lm_sensors-init.d,v 1.1 2006/02/15 18:40:21 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-2.10.0-lm_sensors-init.d,v 1.2 2006/07/16 09:18:36 phreak Exp $ checkconfig() { if [ ! -f /etc/conf.d/lm_sensors ]; then @@ -101,5 +101,11 @@ stop() { rmmod i2c-proc &> /dev/null eend $? fi + + if [[ -e /sys/i2c || /sys/bus/i2c ]] ; then + ebegin " Unloading i2c-core" + rmmod i2c-core &> /dev/null + eend $? + fi fi } diff --git a/sys-apps/lm_sensors/files/lm_sensors-2.9.2-lm_sensors-init.d b/sys-apps/lm_sensors/files/lm_sensors-2.9.2-lm_sensors-init.d index 730b30df6c09..18bbfc781b2c 100644 --- a/sys-apps/lm_sensors/files/lm_sensors-2.9.2-lm_sensors-init.d +++ b/sys-apps/lm_sensors/files/lm_sensors-2.9.2-lm_sensors-init.d @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 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-2.9.2-lm_sensors-init.d,v 1.1 2005/09/06 21:06:02 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-2.9.2-lm_sensors-init.d,v 1.2 2006/07/16 09:18:36 phreak Exp $ checkconfig() { if [ ! -f /etc/conf.d/lm_sensors ]; then @@ -101,5 +101,11 @@ stop() { rmmod i2c-proc &> /dev/null eend $? fi + + if [[ -e /sys/bus/i2c || /sys/i2c ]] ; then + ebegin " Unloading i2c-core" + rmmod i2c-core &> /dev/null + eend $? + fi fi } |