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/tpacpi-bat/files | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-laptop/tpacpi-bat/files')
-rw-r--r-- | app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 | 15 | ||||
-rw-r--r-- | app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1 | 19 | ||||
-rw-r--r-- | app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 | 78 | ||||
-rw-r--r-- | app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 | 76 |
4 files changed, 0 insertions, 188 deletions
diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 b/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 deleted file mode 100644 index 94da0a3eb12a..000000000000 --- a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 +++ /dev/null @@ -1,15 +0,0 @@ -# /etc/conf.d/tpacpi-bat: config file for /etc/init.d/tpacpi-bat - -# use '/etc/init.d/tpacpi-bat info' at any time to check the thresholds -# currently used by the driver - -# default thresholds for '/etc/init.d/tpacpi-bat start' -TPACPI_BAT_THRESH_START="30" -TPACPI_BAT_THRESH_STOP="85" -# values to be used for '/etc/init.d/tpacpi-bat low' -TPACPI_BAT_LOW_THRESH_START="${TPACPI_BAT_THRESH_START}" -TPACPI_BAT_LOW_THRESH_STOP="${TPACPI_BAT_THRESH_STOP}" - -# values to be used for '/etc/init.d/tpacpi-bat high' -TPACPI_BAT_HIGH_THRESH_START="95" -TPACPI_BAT_HIGH_THRESH_STOP="99" #see bug #485526 diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1 b/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1 deleted file mode 100644 index f1faf1d7fd47..000000000000 --- a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1 +++ /dev/null @@ -1,19 +0,0 @@ -# /etc/conf.d/tpacpi-bat: config file for /etc/init.d/tpacpi-bat - -# use '/etc/init.d/tpacpi-bat info' at any time to check the thresholds -# currently used by the driver - -# list of batteries the script should manage -# for example: BATS="1 2" -BATS="1" - -# default thresholds for '/etc/init.d/tpacpi-bat start' -TPACPI_BAT_THRESH_START="30" -TPACPI_BAT_THRESH_STOP="85" -# values to be used for '/etc/init.d/tpacpi-bat low' -TPACPI_BAT_LOW_THRESH_START="${TPACPI_BAT_THRESH_START}" -TPACPI_BAT_LOW_THRESH_STOP="${TPACPI_BAT_THRESH_STOP}" - -# values to be used for '/etc/init.d/tpacpi-bat high' -TPACPI_BAT_HIGH_THRESH_START="95" -TPACPI_BAT_HIGH_THRESH_STOP="99" #see bug #485526 diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 deleted file mode 100644 index d9f5de7fb3dd..000000000000 --- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 +++ /dev/null @@ -1,78 +0,0 @@ -#!/sbin/openrc-run -# Copyright (C) 2012-2016 Christoph Junghans <junghans@gentoo.org> -# -# Distributed under the terms of the GNU General Public License, v2 or later - -extra_started_commands="low high info" - -BATS="1" - -depend() { - after modules -} - -start() { - local state1 - - ebegin "Making sure that module 'acpi_call' is loaded" - modprobe acpi_call - state1=$? - eend ${state1} - - [ "${state1}" -ne "0" ] && return 1 - - ebegin "Starting ${SVCNAME}" - set_all ${TPACPI_BAT_THRESH_START} ${TPACPI_BAT_THRESH_STOP} - eend $? -} - -stop() { - einfo "Nothing required to be done to stop ${SVCNAME}" -} - -require_started() { - if ! service_started; then - "${RC_SERVICE}" start || return $? - fi -} - -high() { - require_started - - einfo "Switching ${SVCNAME} to high thesholds" - set_all ${TPACPI_BAT_HIGH_THRESH_START} ${TPACPI_BAT_HIGH_THRESH_STOP} -} - -low() { - require_started - - einfo "Switching ${SVCNAME} to low thesholds" - set_all ${TPACPI_BAT_LOW_THRESH_START} ${TPACPI_BAT_LOW_THRESH_STOP} -} - -set_all() { - local tstart=$1 - local tstop=$2 - local bat - - for bat in ${BATS}; do - ebegin " setting thresholds for ${bat}: $tstart $tstop" - /usr/bin/tpacpi-bat -s startThreshold ${bat} ${tstart} - /usr/bin/tpacpi-bat -s stopThreshold ${bat} ${tstop} - eend $? - done -} - -info() { - local tstart - local tstop - local bat - - require_started - - for bat in ${BATS}; do - tstart=$(/usr/bin/tpacpi-bat -g startThreshold ${bat}) - tstop=$(/usr/bin/tpacpi-bat -g stopThreshold ${bat}) - einfo "Battery ${bat}: ${tstart} ${tstop}" - done -} diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 deleted file mode 100644 index 7c92b739193d..000000000000 --- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 +++ /dev/null @@ -1,76 +0,0 @@ -#!/sbin/openrc-run -# Copyright (C) 2012-2016 Christoph Junghans <junghans@gentoo.org> -# -# Distributed under the terms of the GNU General Public License, v2 or later - -extra_started_commands="low high info" - -depend() { - after modules -} - -start() { - local state1 - - ebegin "Making sure that module 'acpi_call' is loaded" - modprobe acpi_call - state1=$? - eend ${state1} - - [ "${state1}" -ne "0" ] && return 1 - - ebegin "Starting ${SVCNAME}" - set_all ${TPACPI_BAT_THRESH_START} ${TPACPI_BAT_THRESH_STOP} - eend $? -} - -stop() { - einfo "Nothing required to be done to stop ${SVCNAME}" -} - -require_started() { - if ! service_started; then - "${RC_SERVICE}" start || return $? - fi -} - -high() { - require_started - - einfo "Switching ${SVCNAME} to high thesholds" - set_all ${TPACPI_BAT_HIGH_THRESH_START} ${TPACPI_BAT_HIGH_THRESH_STOP} -} - -low() { - require_started - - einfo "Switching ${SVCNAME} to low thesholds" - set_all ${TPACPI_BAT_LOW_THRESH_START} ${TPACPI_BAT_LOW_THRESH_STOP} -} - -set_all() { - local tstart=$1 - local tstop=$2 - local bat - - for bat in ${BATS}; do - ebegin " setting thresholds for ${bat}: $tstart $tstop" - /usr/bin/tpacpi-bat -s startThreshold ${bat} ${tstart} - /usr/bin/tpacpi-bat -s stopThreshold ${bat} ${tstop} - eend $? - done -} - -info() { - local tstart - local tstop - local bat - - require_started - - for bat in ${BATS}; do - tstart=$(/usr/bin/tpacpi-bat -g startThreshold ${bat}) - tstop=$(/usr/bin/tpacpi-bat -g stopThreshold ${bat}) - einfo "Battery ${bat}: ${tstart} ${tstop}" - done -} |