File: postinst

package info (click to toggle)
asp 1.6-3.1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 252 kB
  • ctags: 86
  • sloc: ansic: 986; sh: 193; makefile: 166
file content (21 lines) | stat: -rw-r--r-- 367 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
#!/bin/bash

 set -e


case "$1" in
    configure)
        update-inetd --add \
        '#asp\t\tdgram\tudp\twait\tnobody\t/usr/sbin/tcpd\t/usr/sbin/in.aspd'
        ;;
    abort-upgrade|abort-remove|abort-deconfigure)
	update-inetd --remove asp
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

exit 0