Files
g15daemon/debian/postinst
T

14 lines
395 B
Bash
Raw Normal View History

2019-05-02 18:11:42 +03:00
#!/bin/sh
set -e
#DEBHELPER#
#g15daemon.service is normally pulled by udev events at boot time or after
#plugging in a device, and deb-systemd-invoke refuses to start a static service,
#so force it to start using invoke-rc.d
2019-05-03 14:11:34 +03:00
if [ -d /run/systemd/system ] && [ -z "$2" ] && ( [ "$1" = "configure" ] \
2019-05-02 18:11:42 +03:00
|| [ "$1" = "abort-remove" ] ) ; then
invoke-rc.d g15daemon start >/dev/null || true
fi