summarylogtreecommitdiffstats
path: root/plusberrypi-shutdown.install
blob: efc2675f1305b5a34a24510710718ed668be2845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}