diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-08-05 08:47:40 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-08-05 08:47:40 +0000 |
commit | c78f582a134ea4a93fbb58005b99a2f5a3e4f22d (patch) | |
tree | 92a0d2059f514258395db13f46f5d32cf63f2a9c /sys-power/acpid/files | |
parent | Apply shared object versioning policy on Gentoo/FreeBSD. Bug 354067 (diff) | |
download | historical-c78f582a134ea4a93fbb58005b99a2f5a3e4f22d.tar.gz historical-c78f582a134ea4a93fbb58005b99a2f5a3e4f22d.tar.bz2 historical-c78f582a134ea4a93fbb58005b99a2f5a3e4f22d.zip |
Improve init.d script detection of baselayout-1 wrt #270646#c52.
Package-Manager: portage-2.2.0_alpha47/cvs/Linux x86_64
Diffstat (limited to 'sys-power/acpid/files')
-rw-r--r-- | sys-power/acpid/files/acpid-2.0.11-init.d | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys-power/acpid/files/acpid-2.0.11-init.d b/sys-power/acpid/files/acpid-2.0.11-init.d index 444f914dc28e..f7f8139f07fd 100644 --- a/sys-power/acpid/files/acpid-2.0.11-init.d +++ b/sys-power/acpid/files/acpid-2.0.11-init.d @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.11-init.d,v 1.5 2011/08/04 18:04:01 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.11-init.d,v 1.6 2011/08/05 08:47:40 ssuominen Exp $ extra_commands="reload" command="/usr/sbin/acpid" @@ -10,16 +10,17 @@ start_stop_daemon_args="--quiet" description="Daemon for Advanced Configuration and Power Interface" depend() { - if [ ! -f /etc/init.d/sysfs ]; then - eerror "The $SVCNAME init-script is written for baselayout-2!" - eerror "Please do not use it with baselayout-1!". - return 1 - fi - need localmount use logger } +if [ "${RC_VERSION:-0}" = "0" ]; then + start() { + eerror "This script cannot be used for baselayout-1." + return 1 + } +fi + reload() { ebegin "Reloading acpid configuration" start-stop-daemon --exec $command --signal HUP |