6 XCOMM @(#) $XConsortium: configTT.src /main/3 1996/04/23 20:38:20 drk $
9 XCOMM (c) Copyright Hewlett-Packard Company, 1993
22 TMPFILE=/tmp/inetd.conf
23 TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserver
24 OLDTTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserverd
28 XCOMM ttdbserver stream rpc/tcp wait root /usr/dt/bin/rpc.ttdbserver rpc.ttdbserver
32 XCOMM see if it already exists
35 nawk -v ttdb=$TTDBSERVERD -v oldttdb=$OLDTTDBSERVERD \
36 '{if (($1 == "ttdbserver" && $6 != ttdb) ||
37 ($1 == "ttdbserverd" && $6 == oldttdb))
46 awk '{if ($1 == "ttdbserver")
47 print $0 > "/tmp/tt-already-there"
50 if [ ! -f /tmp/tt-already-there ]
52 echo "ttdbserver stream rpc/tcp wait root $TTDBSERVERD rpc.ttdbserver" >>$FILE
54 rm /tmp/tt-already-there
61 TMPFILE=/tmp/inetd.conf
62 TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserver
63 OLDTTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserverd
65 nawk -v ttdb=$TTDBSERVERD \
66 '{if ($1 == "ttdbserver" && $6 == ttdb)
75 awk '{if ($1 == "#cde" &&
76 ($2 == "ttdbserver" || $2 == "ttdbserverd")) {
94 echo "ttdbserver 100083 tooltalk" >$FILE
96 awk '{if ($1 == "ttdbserver" && $2 == "100083")
97 print $0 > "/tmp/etc-rpc-already-there"
100 if [ ! -f /tmp/etc-rpc-already-there ]
102 awk '{if ($1 == "ttdbserver" || $2 == "100083")
103 print $0 > "/tmp/etc-rpc-already-there"
106 if [ ! -f /tmp/etc-rpc-already-there ]
108 echo "ttdbserver 100083 tooltalk" >>$FILE
110 awk '{if ($1 == "ttdbserver" || $2 == "100083")
111 print "#cde " $0; else print $0
114 echo "ttdbserver 100083 tooltalk" >>$TMPFILE
117 rm /tmp/etc-rpc-already-there
120 rm /tmp/etc-rpc-already-there
128 TMPFILE="/tmp/etc-rpc"
130 awk '{if ($1 == "ttdbserver" && $2 == "100083")
138 awk '{if ($1 == "#cde") {
159 while [ "$dirname" != "$CDE_TOP" ]
162 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
163 dirname=${dirname%/STAR}
168 #include "CDE-TT.list"
172 VerifyInstalledFiles()
174 echo "Status mode owner group filename"
175 echo "-----------------------------------------"
176 XCOMM exists correct correct correct /usr/dt/foo1
177 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
178 XCOMM exists the link is correct /usr/dt/link
182 #include "../verify.func"
184 #include "CDE-TT.lst"
188 #include "../option.func"
190 XCOMM ######################################################################
194 XCOMM ######################################################################
198 if [ "$OPERATION" = "configure" ]
205 elif [ "$OPERATION" = "deconfigure" ]
216 elif [ "$OPERATION" = "verify" ]
223 if [ "$OPERATION" != "verify" ]
226 HASH issue a SIGHUP to the inetd process
228 ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
229 if [ -s /tmp/tmppsout ]
231 awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh