diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4 | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4')
-rw-r--r-- | app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4 | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4 b/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4 deleted file mode 100644 index eef819913cc6..000000000000 --- a/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4 +++ /dev/null @@ -1,52 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -extra_started_commands="reload" - -depend() { - need localmount - use acpid hald - after bootmisc -} - -checkconfig() { - if [ ! -f /proc/sys/vm/laptop_mode ] ; then - eerror "Kernel does not support laptop_mode" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting laptop_mode" - # bug #342049 fix - # check if dir exists and creates if it doesn't - checkpath -q -d -m 755 /var/run/laptop-mode-tools - touch /var/run/laptop-mode-tools/enabled - /usr/sbin/laptop_mode auto >/dev/null - eend $? -} - -stop() { - ebegin "Stopping laptop_mode" - rm -f /var/run/laptop-mode-tools/enabled - /usr/sbin/laptop_mode stop >/dev/null - eend $? -} - -reload() { - if ! service_started "${SVCNAME}" ; then - eerror "${SVCNAME} has not yet been started" - return 1 - fi - - ebegin "Reloading laptop_mode" - /usr/sbin/laptop_mode stop >/dev/null - rm -f /var/run/laptop-mode-tools/* - /usr/sbin/laptop_mode auto force >/dev/null - eend $? -} - -# vim: set ts=4 : |