6 XCOMM @(#) $XConsortium: configTT.src /main/5 1996/04/23 20:38:48 drk $
9 XCOMM (c) Copyright Hewlett-Packard Company, 1993
22 TMPFILE=/tmp/inetd.conf
23 TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserverd
26 XCOMM see if it already exists
29 nawk -v ttdb=$TTDBSERVERD \
30 '{if ($1 == "100083/1" && $6 != ttdb)
39 awk '{if ($1 == "100083/1")
40 print $0 > "/tmp/tt-already-there"
43 if [ ! -f /tmp/tt-already-there ]
45 echo "100083/1 stream rpc/tcp wait root $TTDBSERVERD $TTDBSERVERD" \
48 rm /tmp/tt-already-there
55 TMPFILE=/tmp/inetd.conf
56 TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserverd
58 nawk -v ttdb=$TTDBSERVERD \
59 '{if ($1 == "100083/1" && $6 == ttdb)
68 awk '{if ($1 == "#cde" && ($2 == "100083/1" || $2 == "100083")) {
90 while [ "$dirname" != "$CDE_TOP" ]
93 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
94 dirname=${dirname%/STAR}
99 #include "CDE-TT.list"
103 VerifyInstalledFiles()
105 echo "Status mode owner group filename"
106 echo "-----------------------------------------"
107 XCOMM exists correct correct correct /usr/dt/foo1
108 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
109 XCOMM exists the link is correct /usr/dt/link
113 #include "../verify.func"
115 #include "CDE-TT.lst"
119 #include "../option.func"
121 XCOMM ######################################################################
125 XCOMM ######################################################################
129 if [ "$OPERATION" = "configure" ]
134 elif [ "$OPERATION" = "deconfigure" ]
143 elif [ "$OPERATION" = "verify" ]
150 if [ "$OPERATION" != "verify" ]
153 HASH issue a SIGHUP to the inetd process
155 ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
156 if [ -s /tmp/tmppsout ]
158 awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh