2 # postinst script for ktalkd
4 # see: dh_installdeb(1)
8 talk_entry
="talk dgram udp wait nobody.tty /usr/sbin/tcpd /usr/sbin/ktalkd"
9 ntalk_entry
="ntalk dgram udp wait nobody.tty /usr/sbin/tcpd /usr/sbin/ktalkd"
12 update-inetd
--pattern '[ \t]/usr/sbin/ktalkd' --enable talk
13 update-inetd
--pattern '[ \t]/usr/sbin/ktalkd' --enable ntalk
17 update-inetd
--remove 'talk[ \t].*[ \t]/usr/sbin/ktalkd'
18 update-inetd
--remove 'ntalk[ \t].*[ \t]/usr/sbin/ktalkd'
24 if grep -q ^talk
/etc
/inetd.conf
; then
25 update-inetd
--group BSD
--add "#$talk_entry"
26 update-inetd
--group BSD
--add "#$ntalk_entry"
28 update-inetd
--group BSD
--add "$talk_entry"
29 update-inetd
--group BSD
--add "$ntalk_entry"
33 abort-upgrade|abort-remove|abort-deconfigure
)
38 echo "postinst called with unknown argument \`$1'" >&2
43 # dh_installdeb will replace this with shell code automatically
44 # generated by other debhelper scripts.