summaryrefslogtreecommitdiffstats
path: root/abs/extra/powerpanel/pwrstatd.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-01 14:55:46 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-01 14:55:46 (GMT)
commit2c4661dddbecc5983a711c2b244e47c6f1cfee49 (patch)
treef8049af9ad8e4af46973b2ddeaa773d5fa9ea628 /abs/extra/powerpanel/pwrstatd.install
parent08bf7a612ffb56ed242d114cdc0cceda2801cc23 (diff)
downloadlinhes_pkgbuild-2c4661dddbecc5983a711c2b244e47c6f1cfee49.zip
linhes_pkgbuild-2c4661dddbecc5983a711c2b244e47c6f1cfee49.tar.gz
linhes_pkgbuild-2c4661dddbecc5983a711c2b244e47c6f1cfee49.tar.bz2
powerpanel: initial inclusion. closes #982
Diffstat (limited to 'abs/extra/powerpanel/pwrstatd.install')
-rw-r--r--abs/extra/powerpanel/pwrstatd.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/extra/powerpanel/pwrstatd.install b/abs/extra/powerpanel/pwrstatd.install
new file mode 100644
index 0000000..5fe72ff
--- /dev/null
+++ b/abs/extra/powerpanel/pwrstatd.install
@@ -0,0 +1,14 @@
+post_install() {
+ add_service.sh pwrstatd
+ sv start pwrstatd
+}
+
+post_upgrade() {
+ post_install
+ sv restart pwrstatd
+}
+
+post_remove() {
+ sv stop pwrstatd
+ remove_service.sh pwrstatd
+}