6 XCOMM @(#) $XConsortium: configRun.src /main/6 1996/10/18 16:26:20 drk $
20 TMPFILE=/tmp/inetd.conf
21 CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
24 XCOMM desired inetd.conf entry:
25 XCOMM 100068/2-4 dgram rpc/udp wait root CDE_INSTALLATION_TOP/bin/rpc.cmsd rpc.cmsd
28 XCOMM first make an awk script and put it in a file.
31 XCOMM comment out any non-cde rpc.cmsd lines
35 '{if ($1 == "100068/2-4" && $6 != cmsd)
44 XCOMM remove any cde 2-4 cmsd
48 '{if ($1 == "100068/2-4" && $6 == cmsd)
58 XCOMM now run an awk script to see if there is an occurrence of 2-5 cmsd
62 '{if ($6 == cmsd && $1 == "100068/2-5")
63 print $0 > "/tmp/cmsd-already-there"
67 XCOMM if it is not there, add it
70 if [ ! -f /tmp/cmsd-already-there ]
72 echo "100068/2-5 dgram rpc/udp wait root $CMSD rpc.cmsd" >>$FILE
74 rm /tmp/cmsd-already-there
82 TMPFILE=/tmp/inetd.conf
83 CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
85 HASH first remove the CDE rpc.cmsd entry
88 '{if (($1 == "100068/2-4" || $1 == "100068/2-5") && $6 == cmsd)
97 HASH now uncomment any previously existing 100068 entry
99 awk '{if ($1 == "#cde") {
100 if ($2 == "100068/2-4") {
112 CreateAppConfigDirectory()
115 HASH Create the APPCONFIG directory inside DT_CONFIG_TOP and create
116 HASH all of its subdirectories
120 if [ ! -d $APPCONFIG ]
127 for i in $APPCONFIG_DIRS
137 for j in $DT_TOP/$APPCONFIG/$i/STAR
139 if [ ! -d `basename $j` ]
151 if [ -f $DT_TOP/config/dtterm.ti ]
153 tic $DT_TOP/config/dtterm.ti
154 if [ -f /usr/share/lib/terminfo/d/dtterm ]
156 chown bin /usr/share/lib/terminfo/d/dtterm
157 chgrp bin /usr/share/lib/terminfo/d/dtterm
158 chmod 644 /usr/share/lib/terminfo/d/dtterm
160 echo "Unable to compile $DT_TOP/config/dtterm.ti"
163 echo "Unable to find $DT_TOP/config/dtterm.ti"
178 while [ "$dirname" != "$CDE_TOP" ]
181 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
182 dirname=${dirname%/STAR}
187 #include "CDE-RUN.list"
192 VerifyInstalledFiles()
194 echo "Status mode owner group filename"
195 echo "-----------------------------------------"
196 XCOMM exists correct correct correct /usr/dt/foo1
197 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
198 XCOMM exists the link is correct /usr/dt/link
202 #include "../verify.func"
204 #include "CDE-RUN.lst"
208 #include "../option.func"
210 XCOMM ##########################################################################
214 XCOMM ##########################################################################
219 DT_TOP=CDE_INSTALLATION_TOP
220 DT_CONFIG_TOP=CDE_CONFIGURATION_TOP
221 DT_TEMP_TOP=CDE_LOGFILES_TOP
227 APPCONFIG_DIRS="appmanager help icons types"
229 DEFAULT_PRINTER="DtPrint"
233 if [ "$OPERATION" = "configure" ]
237 HASH create the CDE_LOGFILES_TOP directory
240 if [ ! -d $DT_TEMP_TOP/$APPCONFIG/appmanager ]
242 mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
246 mv $APPCONFIG/appmanager .hidden-appmanager
248 chmod 755 .hidden-appmanager
251 mv .hidden-appmanager $APPCONFIG/appmanager
257 HASH create the CDE_CONFIGURATION_TOP and its config directory
259 if [ ! -d $DT_CONFIG_TOP ]
261 mkdir -p $DT_CONFIG_TOP
263 if [ ! -d $DT_CONFIG_TOP/config ]
265 mkdir -p $DT_CONFIG_TOP/config
268 CreateAppConfigDirectory
271 HASH ConfigurePrintersDir
273 env LANG=C /usr/dt/bin/dtprintinfo -populate
276 HASH Configure Xsession.d
279 cd $DT_CONFIG_TOP/config
280 if [ ! -d Xsession.d ]
292 elif [ "$OPERATION" = "deconfigure" ]
301 elif [ "$OPERATION" = "verify" ]
308 if [ "$OPERATION" != "verify" ]
311 HASH issue a SIGHUP to the inetd process
313 ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
314 if [ -s /tmp/tmppsout ]
316 awk '{print "kill -1 " $2}' /tmp/tmppsout | /bin/csh