summarylogtreecommitdiffstats
path: root/cpupower_gui.install
diff options
context:
space:
mode:
Diffstat (limited to 'cpupower_gui.install')
-rw-r--r--cpupower_gui.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpupower_gui.install b/cpupower_gui.install
new file mode 100644
index 000000000000..b7f62f86cd79
--- /dev/null
+++ b/cpupower_gui.install
@@ -0,0 +1,16 @@
+post_install() {
+ # enable daemons
+ echo ":: Enabling cpupower-gui-helper service"
+ systemctl --global enable cpupower-gui-helper.service
+ systemctl --global enable cpupower-gui.service
+}
+
+post_upgrade() {
+ echo ":: Enabling cpupower-gui-helper service"
+ systemctl --global enable cpupower-gui-helper.service
+ systemctl --global enable cpupower-gui.service
+}
+pre_remove() {
+ systemctl --global disable cpupower-gui-helper.service
+ systemctl --global disable cpupower-gui.service
+}