6 XCOMM @(#) $XConsortium: configMin.src /main/3 1996/04/23 20:38:09 drk $
21 XCOMM check for existence of /etc/services
24 if [ ! -f $FILE ] # highly unlikely
30 XCOMM see if it already exists
33 awk '{if ($1 == "dtspc")
34 print $0 > "/tmp/dtspc-already-there"
37 if [ ! -f /tmp/dtspc-already-there ]
39 echo "dtspc\t\t6112/tcp\t#subprocess control" >>$FILE
41 rm /tmp/dtspc-already-there
45 XCOMM remove legacy entries like dtspcd
48 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd")
63 awk '{if ($1 == "dtspc" && $2 == "6112/tcp")
76 TMPFILE=/tmp/inetd.conf
79 XCOMM check for existence of /etc/inetd.conf
82 if [ ! -f $FILE ] # highly unlikely
89 XCOMM dtspc stream tcp nowait root /usr/dt/bin/dtspcd dtspcd
93 XCOMM see if it already exists
96 awk '{if ($1 == "dtspc")
97 print $0 > "/tmp/dtspc-already-there"
100 DTSPCD=CDE_INSTALLATION_TOP/bin/dtspcd
102 if [ ! -f /tmp/dtspc-already-there ]
104 echo "dtspc stream tcp nowait root $DTSPCD dtspcd" >>$FILE
106 rm /tmp/dtspc-already-there
110 XCOMM remove legacy entries like dtspcd
113 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd")
123 UnfixEtcInetdDotConf()
126 TMPFILE=/tmp/inetd.conf
128 awk '{if ($1 == "dtspc")
149 while [ "$dirname" != "$CDE_TOP" ]
152 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
153 dirname=${dirname%/STAR}
158 #include "CDE-MIN.list"
162 VerifyInstalledFiles()
164 echo "Status mode owner group filename"
165 echo "-----------------------------------------"
166 XCOMM exists correct correct correct /usr/dt/foo1
167 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
168 XCOMM exists the link is correct /usr/dt/link
172 #include "../verify.func"
174 #include "CDE-MIN.lst"
178 #include "../option.func"
180 XCOMM ###############################################################
184 XCOMM ###############################################################
188 if [ "$OPERATION" = "configure" ]
196 HASH create the /var/dt/tmp directory for the dtspcd
199 if [ ! -d CDE_LOGFILES_TOP/tmp ]
201 mkdir -p CDE_LOGFILES_TOP/tmp
204 elif [ "$OPERATION" = "deconfigure" ]
215 elif [ "$OPERATION" = "verify" ]
222 if [ "$OPERATION" != "verify" ]
225 HASH issue a SIGHUP to the inetd process
227 ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
228 if [ -s /tmp/tmppsout ]
230 awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh