File: postinst

package info (click to toggle)
scanlogd 2.2.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 120 kB
  • ctags: 90
  • sloc: ansic: 492; makefile: 81; sh: 80
file content (13 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

update-rc.d scanlogd defaults >/dev/null
# scanlogd needs a user
adduser --system scanlogd || true

if which invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d scanlogd start
else
    /etc/init.d/scanlogd start
fi

#DEBHELPER#