Brian May wrote:
> Maybe the code I copied from was overly complicated, but manipulating
> inetd scripts ended up modifying postinst, postrm, and prerm.
I only maintan one package with inetd, and it has not had inetd for
long, but I got away with just postinst and postrm:
postinst:
# Add example entry to inetd.conf.
if [ "$1" = configure -a -x /usr/sbin/update-inetd -a -f /etc/inetd.conf ]; then
if ! grep -q in.mooix /etc/inetd.conf; then
update-inetd --group OTHER --add "#<disabled>#7777 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.mooix"
fi
fi
postrm:
if [ "$1" = remove ]; then
update-inetd --remove --pattern in.mooix 7777
fi
--
see shy jo
Attachment:
pgp293Kviqzfm.pgp
Description: PGP signature