aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linux-status.install
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-27 12:42:51 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-27 12:42:51 +0200
commitbc97f470c79be251090e91d5c471004b7937a43b (patch)
tree464616ce05a57e7ad4c96d7137e753e087f2aee6 /linux-status.install
parentupdate .gitignore (diff)
downloadlinux-status-bc97f470c79be251090e91d5c471004b7937a43b.tar.gz
linux-status-bc97f470c79be251090e91d5c471004b7937a43b.zip
aur: 2.3.2-2
Diffstat (limited to '')
-rw-r--r--linux-status.install10
1 files changed, 6 insertions, 4 deletions
diff --git a/linux-status.install b/linux-status.install
index 32b9a90..7d4e216 100644
--- a/linux-status.install
+++ b/linux-status.install
@@ -1,12 +1,14 @@
+pkgname=linux-status
+
post_install() {
systemctl --system daemon-reload
- systemctl --system enable linux-status
- systemctl --system start linux-status
+ systemctl --system enable "$pkgname.service"
+ systemctl --system start "$pkgname.service"
}
pre_remove() {
- systemctl --system stop linux-status.service
- systemctl --system disable linux-status.service
+ systemctl --system stop "$pkgname.service"
+ systemctl --system disable "$pkgname.service"
systemctl --system daemon-reload
}