diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-06 22:32:47 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-06 22:32:47 +0300 |
commit | 4c2f427c3f87a21d96d8069f3356b7e374360349 (patch) | |
tree | 73ad79c58ec87794714853a11bfcf1fc64bfe87d /linux-status.install | |
download | linux-status-4c2f427c3f87a21d96d8069f3356b7e374360349.tar.gz linux-status-4c2f427c3f87a21d96d8069f3356b7e374360349.zip |
import pacman packaging from master
Diffstat (limited to 'linux-status.install')
-rw-r--r-- | linux-status.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linux-status.install b/linux-status.install new file mode 100644 index 0000000..32b9a90 --- /dev/null +++ b/linux-status.install @@ -0,0 +1,19 @@ +post_install() { + systemctl --system daemon-reload + systemctl --system enable linux-status + systemctl --system start linux-status +} + +pre_remove() { + systemctl --system stop linux-status.service + systemctl --system disable linux-status.service + systemctl --system daemon-reload +} + +pre_upgrade() { + pre_remove "$1" +} + +post_upgrade() { + post_install "$1" +} |