diff options
Diffstat (limited to 'linux-status.install')
-rw-r--r-- | linux-status.install | 10 |
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 } |