Debian Codegraph @

debian/inetutils-inetd.preinst

raw
1 #!/bin/sh
2
3 set -e
4
5 create_inetd_conf()
6 {
7 [ -e /etc/inetd.conf ] && return 0
8
9 cat <<EOF > /etc/inetd.conf
10 # /etc/inetd.conf: see inetd(8) for further informations.
11 #
12 # Internet superserver configuration database.
13 #
14 #
15 # Lines starting with "#:LABEL:" or "#<off>#" should not
16 # be changed unless you know what you are doing!
17 #
18 # If you want to disable an entry so it is not touched during
19 # package updates just comment it out with a single '#' character.
20 #
21 # Packages should modify this file by using update-inetd(8).
22 #
23 # <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
24 #
25 #:INTERNAL: Internal services
26 #discard stream tcp6 nowait root internal
27 #discard dgram udp6 wait root internal
28 #daytime stream tcp6 nowait root internal
29 #time stream tcp6 nowait root internal
30
31 #:STANDARD: These are standard services.
32
33 #:BSD: Shell, login, exec and talk are BSD protocols.
34
35 #:MAIL: Mail, news and uucp services.
36
37 #:INFO: Info services
38
39 #:BOOT: TFTP service is provided primarily for booting. Most sites
40 # run this only on machines acting as "boot servers."
41
42 #:RPC: RPC based services
43
44 #:HAM-RADIO: amateur-radio services
45
46 #:OTHER: Other services
47
48 EOF
49
50 chmod 644 /etc/inetd.conf
51 }
52
53 case "$1" in
54 install)
55 create_inetd_conf
56 ;;
57 esac
58
59 #DEBHELPER#