6 XCOMM @(#) $TOG: configMin.src /main/1 1998/03/11 16:18:12 mgreess $
22 XCOMM check for existence of /etc/services
25 if [ ! -f $FILE ] # highly unlikely
31 XCOMM see if it already exists
34 awk '{if ($1 == "dtspc")
35 print $0 > "/tmp/dtspc-already-there"
38 if [ ! -f /tmp/dtspc-already-there ]
40 printf "dtspc\t\t6112/tcp\t#subprocess control" >>$FILE
42 rm /tmp/dtspc-already-there
46 XCOMM remove legacy entries like dtspcd
49 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd")
64 awk '{if ($1 == "dtspc" && $2 == "6112/tcp")
77 TMPFILE=/tmp/inetd.conf
80 XCOMM check for existence of /etc/inetd.conf
83 if [ ! -f $FILE ] # highly unlikely
89 XCOMM see if it already exists
92 awk '{if ($1 == "dtspc")
93 print $0 > "/tmp/dtspc-already-there"
96 DTSPCD=CDE_INSTALLATION_TOP/bin/dtspcd
98 if [ ! -f /tmp/dtspc-already-there ]
100 echo "dtspc stream tcp4 nowait root $DTSPCD $DTSPCD" >>$FILE
102 rm /tmp/dtspc-already-there
106 XCOMM remove legacy entries like dtspcd
109 awk '{if ($1 == "dtspcd" || $1 == "#dtspcd")
119 UnfixEtcInetdDotConf()
122 TMPFILE=/tmp/inetd.conf
124 awk '{if ($1 == "dtspc")
137 ORIGFILE=/etc/pam.conf.preCDE
140 XCOMM check for existence of /etc/pam.conf
146 cp CDE_INSTALLATION_TOP/config/sys.pam.conf $FILE
149 echo "Warning: $FILE already exists. Leaving it alone." 1>&2
150 cp CDE_INSTALLATION_TOP/config/sys.pam.conf $ORIGFILE
158 TMPFILE=/etc/pam.conf.CDE
159 ORIGFILE=/etc/pam.conf.preCDE
163 echo "Warning: $FILE does not exist." 1>&2
164 elif [ ! -f $ORIGFILE ]
166 echo "Warning: $ORIGFILE does not exist. Leaving $FILE alone." 1>&2
185 while [ "$dirname" != "$CDE_TOP" ]
188 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
189 dirname=${dirname%/STAR}
194 #include "CDE-MIN.list"
200 DTMANPATH=CDE_INSTALLATION_TOP/share/man
201 echo "MANPATH $DTMANPATH" > ${PREFIX}/etc/man.d/cde.conf
206 rm -f ${PREFIX}/etc/man.d/cde.conf
209 VerifyInstalledFiles()
211 echo "Status mode owner group filename"
212 echo "-----------------------------------------"
213 XCOMM exists correct correct correct /usr/dt/foo1
214 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
215 XCOMM exists the link is correct /usr/dt/link
219 #include "../verify.func"
221 #include "CDE-MIN.lst"
225 #include "../option.func"
227 XCOMM ###############################################################
231 XCOMM ###############################################################
235 if [ "$OPERATION" = "configure" ]
245 HASH create the /var/dt/tmp directory for the dtspcd
248 if [ ! -d CDE_LOGFILES_TOP/tmp ]
250 mkdir -p CDE_LOGFILES_TOP/tmp
253 elif [ "$OPERATION" = "deconfigure" ]
260 : UnfixEtcInetdDotConf
266 elif [ "$OPERATION" = "verify" ]