summarylogtreecommitdiffstats
path: root/g810-led-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'g810-led-git.install')
-rw-r--r--g810-led-git.install11
1 files changed, 8 insertions, 3 deletions
diff --git a/g810-led-git.install b/g810-led-git.install
index 92e0dcaf5505..347317cfd693 100644
--- a/g810-led-git.install
+++ b/g810-led-git.install
@@ -5,10 +5,13 @@ pre_install() {
## arg 1: the new package version
post_install() {
- /usr/bin/g810-led -p /etc/g810-led/profile
udevadm control --reload-rules
systemctl daemon-reload
- systemctl enable g810-led-reboot
+ /usr/bin/g810-led -p /etc/g810-led/profile
+ # Don't enable service by default in ArchLinux
+ #systemctl enable g810-led-reboot
+ echo "You can enable systemd unit g810-led-reboot with the next command :"
+ echo "systemctl enable g810-led-reboot"
}
## arg 1: the new package version
@@ -21,13 +24,15 @@ pre_upgrade() {
## arg 2: the old package version
post_upgrade() {
udevadm control --reload-rules
- /usr/bin/g810-led -p /etc/g810-led/profile
systemctl daemon-reload
}
## arg 1: the old package version
pre_remove() {
+ systemctl stop g810-led-reboot
systemctl disable g810-led-reboot
+
+ # For old release, need to be removed
systemctl stop g810-led
systemctl disable g810-led
}