6 XCOMM @(#) $XConsortium: configRun.src /main/7 1996/10/18 16:26:43 drk $
12 CreateAppConfigDirectory()
15 HASH Create the APPCONFIG directory inside DT_CONFIG_TOP and create
16 HASH all of its subdirectories
20 if [ ! -d $APPCONFIG ]
27 for i in $APPCONFIG_DIRS
37 for j in $DT_TOP/$APPCONFIG/$i/STAR
39 if [ ! -d `basename $j` ]
51 FILE="/etc/inet/inetd.conf"
52 TMPFILE="/tmp/inetd.conf"
55 XCOMM desired inetd.conf entry:
56 XCOMM 100068/2-4 dgram rpc/udp wait root CDE_INSTALLATION_TOP/bin/rpc.cmsd
61 XCOMM ensure links not clobbered
64 for file in services inetd.conf
66 if test ! -L /etc/$file
67 then if test -f /etc/$file
70 ln -s /etc/inet/$file /etc/$file
75 CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
77 '{if ($1 == "100068/2-4" && $6 != cmsd)
83 if test ! -f ${FILE}.preCDE
84 then mv $FILE ${FILE}.preCDE
85 cp ${FILE}.preCDE $FILE
91 XCOMM now see if there is an occurrence of cmsd
94 rm -f /tmp/cmsd-already-there
95 nawk '{if ($7 == "rpc.cmsd" && $1 == "100068/2-4") print $0 > \
96 "/tmp/cmsd-already-there"}' $FILE >/dev/null
99 XCOMM if it is not there, add it
102 if [ ! -f /tmp/cmsd-already-there ]
104 echo "100068/2-4 dgram rpc/udp wait root $CMSD rpc.cmsd" >>$FILE
106 rm /tmp/cmsd-already-there
112 FILE=/etc/inet/inetd.conf
113 TMPFILE=/tmp/inetd.conf
114 CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
117 '{if ($1 == "100068/2-4" && $6 == cmsd)
125 nawk '{if ($1 == "#cde" && $2 == "100068/2-4") {
138 XCOMM Schedule inetd to re-read inetd.conf with SIGHUP.
140 ps -ef | grep inetd | grep -v grep >/tmp/tmppsout
141 if test -s /tmp/tmppsout
143 nawk '{print "kill -HUP " $2}' /tmp/tmppsout | /bin/ksh
152 if [ -f $DT_TOP/config/dtterm.ti ]
154 tic $DT_TOP/config/dtterm.ti
155 if [ -f /usr/share/lib/terminfo/d/dtterm ]
157 chown bin /usr/share/lib/terminfo/d/dtterm
158 chgrp bin /usr/share/lib/terminfo/d/dtterm
159 chmod 644 /usr/share/lib/terminfo/d/dtterm
161 echo "Unable to compile $DT_TOP/config/dtterm.ti"
164 echo "Unable to find $DT_TOP/config/dtterm.ti"
179 while [ "$dirname" != "$CDE_TOP" ]
182 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
183 dirname=${dirname%/STAR}
188 #include "CDE-RUN.list"
193 VerifyInstalledFiles()
195 echo "Status mode owner group filename"
196 echo "-----------------------------------------"
197 XCOMM exists correct correct correct /usr/dt/foo1
198 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
199 XCOMM exists the link is correct /usr/dt/link
203 #include "../verify.func"
205 #include "CDE-RUN.lst"
209 #include "../option.func"
211 XCOMM ######################################################################
215 XCOMM ######################################################################
221 DT_TOP=CDE_INSTALLATION_TOP
222 DT_CONFIG_TOP=CDE_CONFIGURATION_TOP
223 DT_TEMP_TOP=CDE_LOGFILES_TOP
229 APPCONFIG_DIRS="appmanager help icons types"
233 if [ "$OPERATION" = "configure" ]
237 HASH create the CDE_LOGFILES_TOP directory
239 if [ ! -d $DT_TEMP_TOP/$APPCONFIG/appmanager ]
241 mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
244 mv $APPCONFIG/appmanager .hidden-appmanager
246 chmod 755 .hidden-appmanager
249 mv .hidden-appmanager $APPCONFIG/appmanager
255 HASH create the CDE_CONFIGURATION_TOP and its config directory
257 if [ ! -d $DT_CONFIG_TOP ]
259 mkdir -p $DT_CONFIG_TOP
261 if [ ! -d $DT_CONFIG_TOP/config ]
263 mkdir -p $DT_CONFIG_TOP/config
266 CreateAppConfigDirectory
269 HASH Create default printer actions
271 env LANG=C /usr/dt/bin/dtprintinfo -populate
274 HASH Configure Xsession.d
277 cd $DT_CONFIG_TOP/config
278 if [ ! -d Xsession.d ]
291 elif [ "$OPERATION" = "deconfigure" ]
299 elif [ "$OPERATION" = "verify" ]