You've already forked Geekwom-NASPi-Daemon
Inital Commit
All checks were successful
Geekwom NASPi Daemon / Geekwom NASPi Daemon [arm64] (push) Successful in 10s
All checks were successful
Geekwom NASPi Daemon / Geekwom NASPi Daemon [arm64] (push) Successful in 10s
This commit is contained in:
31
root/DEBIAN/postinst
Normal file
31
root/DEBIAN/postinst
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
if [ -d '/run/systemd/system' ]; then
|
||||
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
|
||||
case "${1}" in
|
||||
configure)
|
||||
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
||||
/usr/bin/deb-systemd-helper unmask 'geekworm-naspi-button.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper unmask 'geekworm-naspi-pwmd.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
if /usr/bin/deb-systemd-helper --quiet was-enabled ''; then
|
||||
/usr/bin/deb-systemd-helper enable 'geekworm-naspi-button.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper enable 'geekworm-naspi-pwmd.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
else
|
||||
/usr/bin/deb-systemd-helper update-state 'geekworm-naspi-button.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper update-state 'geekworm-naspi-pwmd.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user