diff options
author | MatMoul | 2017-05-07 02:20:18 +0200 |
---|---|---|
committer | MatMoul | 2017-05-07 02:20:18 +0200 |
commit | 5c710b748e38f7619efb0f04cc0db1ab7a3dca79 (patch) | |
tree | f45832e73be63f778a2beda95960e0f5618ca324 /g810-led-git.install | |
parent | 386de4f56cbfb1e1685022bed44dfbfbb195b1b4 (diff) | |
download | aur-5c710b748e38f7619efb0f04cc0db1ab7a3dca79.tar.gz |
New version
Diffstat (limited to 'g810-led-git.install')
-rw-r--r-- | g810-led-git.install | 11 |
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 } |