3
if [ "$1" = "install" -a -x /etc/init.d/inetd ]; then
7
DIVERT="/usr/sbin/inetd /usr/share/man/man8/inetd.8.gz /usr/share/man/man5/inetd.conf.5.gz"
9
if [ install = "$1" -o upgrade = "$1" ]; then
10
for file in $DIVERT; do
11
dpkg-divert --package openbsd-inetd --add --rename \
12
--divert $file.netkit $file
16
# create a new /etc/inetd.conf file if it doesn't already exist
17
if [ ! -f /etc/inetd.conf ]; then
18
cat <<EOF >/etc/inetd.conf
19
# /etc/inetd.conf: see inetd(8) for further informations.
21
# Internet server configuration database
24
# Lines starting with "#:LABEL:" or "#<off>#" should not
25
# be changed unless you know what you are doing!
27
# If you want to disable an entry so it isn't touched during
28
# package updates just comment it out with a single '#' character.
30
# Packages should modify this file by using update-inetd(8)
32
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
34
#:INTERNAL: Internal services
35
#echo stream tcp nowait root internal
36
#echo dgram udp wait root internal
37
#chargen stream tcp nowait root internal
38
#chargen dgram udp wait root internal
39
discard stream tcp nowait root internal
40
discard dgram udp wait root internal
41
daytime stream tcp nowait root internal
42
#daytime dgram udp wait root internal
43
time stream tcp nowait root internal
44
#time dgram udp wait root internal
46
#:STANDARD: These are standard services.
48
#:BSD: Shell, login, exec and talk are BSD protocols.
50
#:MAIL: Mail, news and uucp services.
54
#:BOOT: Tftp service is provided primarily for booting. Most sites
55
# run this only on machines acting as "boot servers."
57
#:RPC: RPC based services
59
#:HAM-RADIO: amateur-radio services
61
#:OTHER: Other services
64
chmod 644 /etc/inetd.conf