6 XCOMM @(#) $XConsortium: configMin.src /main/6 1996/04/23 20:38:34 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\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
88 XCOMM see if it already exists
91 awk '{if ($1 == "dtspc")
92 print $0 > "/tmp/dtspc-already-there"
95 DTSPCD=CDE_INSTALLATION_TOP/bin/dtspcd
97 if [ ! -f /tmp/dtspc-already-there ]
99 echo "dtspc stream tcp nowait root $DTSPCD $DTSPCD" >>$FILE
101 rm /tmp/dtspc-already-there
105 XCOMM remove legacy entries like dtspcd
108 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd")
118 UnfixEtcInetdDotConf()
121 TMPFILE=/tmp/inetd.conf
123 awk '{if ($1 == "dtspc")
136 ORIGFILE=/etc/pam.conf.preCDE
139 XCOMM check for existence of /etc/pam.conf
145 cp CDE_INSTALLATION_TOP/config/sys.pam.conf $FILE
148 echo "Warning: $FILE already exists. Leaving it alone." 1>&2
149 cp CDE_INSTALLATION_TOP/config/sys.pam.conf $ORIGFILE
157 TMPFILE=/etc/pam.conf.CDE
158 ORIGFILE=/etc/pam.conf.preCDE
162 echo "Warning: $FILE does not exist." 1>&2
163 elif [ ! -f $ORIGFILE ]
165 echo "Warning: $ORIGFILE does not exist. Leaving $FILE alone." 1>&2
184 while [ "$dirname" != "$CDE_TOP" ]
187 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
188 dirname=${dirname%/STAR}
193 #include "CDE-MIN.list"
197 VerifyInstalledFiles()
199 echo "Status mode owner group filename"
200 echo "-----------------------------------------"
201 XCOMM exists correct correct correct /usr/dt/foo1
202 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
203 XCOMM exists the link is correct /usr/dt/link
207 #include "../verify.func"
209 #include "CDE-MIN.lst"
213 #include "../option.func"
215 XCOMM ###############################################################
219 XCOMM ###############################################################
223 if [ "$OPERATION" = "configure" ]
233 HASH create the /var/dt/tmp directory for the dtspcd
236 if [ ! -d CDE_LOGFILES_TOP/tmp ]
238 mkdir -p CDE_LOGFILES_TOP/tmp
241 elif [ "$OPERATION" = "deconfigure" ]
254 elif [ "$OPERATION" = "verify" ]
261 if [ "$OPERATION" != "verify" ]
264 HASH issue a SIGHUP to the inetd process
266 ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
267 if [ -s /tmp/tmppsout ]
269 awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh