Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2 set -e
3
4 #DEBHELPER#
5
6 #g15daemon.service is normally pulled by udev events at boot time or after
7 #plugging in a device, and deb-systemd-invoke refuses to start a static service,
8 #so force it to start using invoke-rc.d
9
10 if [ -d /run/systemd/system ] && [ -z "$2" ] && ( [ "$1" = "configure" ] \
11 || [ "$1" = "abort-remove" ] ) ; then
12 invoke-rc.d g15daemon start >/dev/null || true
13 fi
14