File: postinst

package info (click to toggle)
g15daemon 1.9.5.3-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,144 kB
  • sloc: sh: 9,189; ansic: 3,188; perl: 115; makefile: 66
file content (14 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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

if [ -d /run/systemd/system ] && [ -z "$2" ] && ( [ "$1" = "configure" ] \
		|| [ "$1" = "abort-remove" ] ) ; then
	invoke-rc.d g15daemon start >/dev/null || true
fi