diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-04-09 23:58:23 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-04-09 23:58:23 -0500 |
commit | f5107aa4ce1617fee37520e419598e0d30e0df6d (patch) | |
tree | a27137939b813cd074029d8efa579e377c806009 /pcr/openrc-misc/laptop-mode-tools.install | |
parent | 789909511fc23d75da254bb1a1e8345fa1e7b906 (diff) |
openrc-misc-20160406-1: updating version
Diffstat (limited to 'pcr/openrc-misc/laptop-mode-tools.install')
-rw-r--r-- | pcr/openrc-misc/laptop-mode-tools.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/openrc-misc/laptop-mode-tools.install b/pcr/openrc-misc/laptop-mode-tools.install new file mode 100644 index 000000000..f6828f600 --- /dev/null +++ b/pcr/openrc-misc/laptop-mode-tools.install @@ -0,0 +1,16 @@ +_svc="laptop_mode" +_rlvl="default" + +post_install() { + _cmd="rc-update add ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + _cmd="rc-update del ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} |