6 XCOMM @(#) $XConsortium: configMin.src /main/4 1996/04/23 19:33:27 drk $
9 XCOMM (c) Copyright Hewlett-Packard Company, 1993
18 XCOMM check for existence of /etc/services
21 if [ ! -f /etc/services ] # highly unlikely
23 echo "" >/etc/services
27 XCOMM see if it already exists
30 awk '{if ($1 == "dtspc") print $0 > "/tmp/dtspc-already-there"}' \
31 /etc/services >/dev/null
32 if [ ! -f /tmp/dtspc-already-there ]
34 echo "dtspc\t6112/tcp\t#subprocess control" >>/etc/services
36 rm /tmp/dtspc-already-there
40 XCOMM remove legacy entries like dtspcd
43 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd") ; else print $0}' \
44 /etc/services >/tmp/etc-services
45 mv /tmp/etc-services /etc/services
48 XCOMM check for existence of /etc/inetd.conf
51 if [ ! -f /etc/inetd.conf ] # highly unlikely
53 echo "" >/etc/inetd.conf
57 XCOMM see if it already exists
60 awk '{if ($1 == "dtspc") print $0 > "/tmp/dtspc-already-there"}' \
61 /etc/inetd.conf >/dev/null
63 if [ ! -f /tmp/dtspc-already-there ]
65 echo dtspc stream tcp nowait root CDE_INSTALLATION_TOP/bin/dtspcd CDE_INSTALLATION_TOP/bin/dtspcd >>/etc/inetd.conf
67 rm /tmp/dtspc-already-there
71 XCOMM remove legacy entries like dtspcd
74 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd") ; else print $0}' \
75 /etc/inetd.conf >/tmp/etc-inetd-conf
76 mv /tmp/etc-inetd-conf /etc/inetd.conf
79 XCOMM create the /var/dt/tmp directory for the dtspcd
82 if [ ! -d CDE_LOGFILES_TOP/tmp ]
84 mkdir -p CDE_LOGFILES_TOP/tmp