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.install7
1 files changed, 3 insertions, 4 deletions
diff --git a/g810-led-git.install b/g810-led-git.install
index 89e319920a21..92e0dcaf5505 100644
--- a/g810-led-git.install
+++ b/g810-led-git.install
@@ -5,10 +5,9 @@ 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 start g810-led
- systemctl enable g810-led
systemctl enable g810-led-reboot
}
@@ -22,15 +21,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
- systemctl restart g810-led
}
## arg 1: the old package version
pre_remove() {
+ systemctl disable g810-led-reboot
systemctl stop g810-led
systemctl disable g810-led
- systemctl disable g810-led-reboot
}
## arg 1: the old package version