diff options
Diffstat (limited to 'plusberrypi-shutdown.install')
-rw-r--r-- | plusberrypi-shutdown.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plusberrypi-shutdown.install b/plusberrypi-shutdown.install new file mode 100644 index 000000000000..efc2675f1305 --- /dev/null +++ b/plusberrypi-shutdown.install @@ -0,0 +1,23 @@ +post_install() { + systemctl daemon-reload + systemctl enable plusberrypi-shutdown + systemctl start plusberrypi-shutdown +} + +pre_upgrade() { + systemctl stop plusberrypi-shutdown +} + +post_upgrade() { + systemctl daemon-reload + systemctl start plusberrypi-shutdown +} + +pre_remove() { + systemctl stop plusberrypi-shutdown + systemctl disable plusberrypi-shutdown +} + +post_remove() { + systemctl reset-failed plusberrypi-shutdown +} |