File: postinst

package info (click to toggle)
bnetd 0.4.19-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,552 kB
  • ctags: 2,109
  • sloc: ansic: 23,811; sh: 1,704; makefile: 295
file content (28 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

case "$1" in
    configure)
        # continue below
    ;;
    abort-upgrade|abort-remove|abort-deconfigure)
        exit 0
    ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

if [ ! -e /usr/share/bnetd/default.pcx ]; then
	cd /usr/share/bnetd
	ln -s debian.pcx default.pcx
fi

if [ -d /usr/doc -a ! -e /usr/doc/bnetd -a -d /usr/share/doc/bnetd ]; then
	ln -sf ../share/doc/bnetd /usr/doc/bnetd
fi
update-rc.d bnetd defaults >/dev/null
/etc/init.d/bnetd start

exit 0