2 XCOMM $XConsortium: installCDE.src /main/20 1996/11/25 14:21:13 drk $
5 XCOMM This script uses the 'CDE' databases to install either the Desktop
6 XCOMM environment on a specified machine or creates a tar ball to be used
7 XCOMM in an install process.
9 XCOMM this script accepts the following parameters:
10 XCOMM -s <source> -- The top of build tree where the files are
12 XCOMM -z <package> -- The desktop install package
14 XCOMM Optional parameters:
16 XCOMM -t <package destination> -- where to store install package
17 XCOMM -pI <actual install location> -- where CDE_INSTALLATION_TOP will be linked to.
18 XCOMM -pC <actual config location> -- where CDE_CONFIGURATION_TOP will be linked to.
19 XCOMM -pV <actual var location> -- where CDE_LOGFILES_TOP will be linked to.
20 XCOMM -a <alternate udb directory>
21 XCOMM -f <filesets> -- a quoted, space-separated list of
22 XCOMM filesets to load. The .udb extension
23 XCOMM is not required.
25 XCOMM -clean -- remove the temporary, configuration and installation
27 XCOMM -cleanTwo-- remove the temporary and installation directories
28 XCOMM but NOT the configuration directory
29 XCOMM -cleanEtc-- remove the configuration directories
30 XCOMM -prog -- load only the development environment
31 XCOMM -runtime -- load only the runtime environment
32 XCOMM -pack -- create packing list
33 XCOMM -pseudo -- don't configure the desktop
34 XCOMM -nocompress -- don't compress the tarball (-t only)
36 XCOMM -Lang -- load the localized filesets
37 XCOMM -LinkStepOnly -- set up the -pI, -pC, and -pV links
39 XCOMM -DontRunScripts -- stop after installation
40 XCOMM -RunScriptsOnly -- only execute the scripts
41 XCOMM -configureOnly -- only configure the desktop
43 XCOMM ##########################################################################
48 LOGFILE="installCDE.$$.log"
50 REVISION="$(echo "$Revision: /main/20 $" | awk '{print $2}')"
54 echo "$1" | tee -a $LOGFILE
59 Log "\nGenerating UNIX Desktop install package $DATE in $TARBALL_LOCATION"
61 HASH create installable tarball
63 Log "Creating tarball..."
65 if [ $PLATFORM = "usl" -o "$PLATFORM" = "uxp" ]
71 mkdir -p $TARBALL_LOCATION/$DIRNAME
73 echo $DATE >$LOGFILES_LOCATION/.build.$DATE
74 chown bin $LOGFILES_LOCATION/.build.$DATE
76 if [ "$COMPRESS_TARBALL" = "yes" ]; then
77 tar -cf - $INSTALL_LOCATION/STAR \
78 2>$TARBALL_LOCATION/$DIRNAME/extract.err |
79 compress -c >$TARBALL_LOCATION/$DIRNAME/dttar.Z
81 tar -cf $TARBALL_LOCATION/$DIRNAME/dt.tar \
82 $INSTALL_LOCATION/STAR \
83 2>$TARBALL_LOCATION/$DIRNAME/extract.err 2>&1
86 if [ "$ACTUAL_INSTALLATION_LOC" = "" ]; then
87 actualInstallDir=$INSTALL_LOCATION
89 actualInstallDir=$ACTUAL_INSTALLATION_LOC
91 let size=$(du -s $actualInstallDir | awk '{print $1}')*512
93 HASH load installation fileset *after* tarball generated
94 LoadFileSet "" "CDE-INSTALL"
96 HASH create config dir
97 destPost=$TARBALL_LOCATION/$DIRNAME/config
100 HASH copy config and platform config scripts
101 src=$INSTALL_LOCATION/install/$PLATFORM_SCRIPT_DIR
102 cp $src/config/STAR.cfg $destPost
104 HASH copy this script and install.dt platform overrides
105 cp $src/install.dto $TARBALL_LOCATION/$DIRNAME/install.dto
106 cp $src/install.cde $TARBALL_LOCATION/$DIRNAME/install.cde
107 chmod 755 $TARBALL_LOCATION/$DIRNAME/install.cde
113 cat >$TARBALL_LOCATION/$DIRNAME/dt.pkg <<FIN
117 COMPRESSED: $COMPRESS_TARBALL
119 CL: $ORIGINAL_COMMAND_LINE
120 FILESETS: $DATABASE_FILES
123 cat >$TARBALL_LOCATION/$DIRNAME/build.status <<FIN
127 OVERALL STATUS: <not yet tested>
128 OVERALL PERFORMANCE: <not yet tested>
129 MAJOR PROBLEMS: <not yet tested>
133 chmod g+w $TARBALL_LOCATION/$DIRNAME/build.status
141 if [ "$BUILD_TREE" = "" ]; then
142 ScriptName=$3 # use short config file name (foo.cfg)
144 ScriptName=$2 # use long config file name (configFoo)
147 if [ $CDECONFIGDIR = "CONFIG" ]; then
148 typeset -u ScriptName
151 test_string=${DATABASE_FILES#*$FilesetName}
152 if (( ${#DATABASE_FILES} > ${#test_string} ))
154 if [ -x $POST_INSTALL_DIR/$PLATFORM_SCRIPT_DIR/$ScriptName ]
156 Log "Executing $PLATFORM specific $FilesetName customize script"
157 $POST_INSTALL_DIR/$PLATFORM_SCRIPT_DIR/$ScriptName -e 2>&1 | \
159 elif [ -x $POST_INSTALL_DIR/$ScriptName ]
161 Log "Executing $FilesetName customize script"
162 $POST_INSTALL_DIR/$ScriptName -e 2>&1 | tee -a $LOGFILE
171 DoFilesetScript CDE-TT configTT tt.cfg
172 DoFilesetScript CDE-MIN configMin min.cfg
173 DoFilesetScript CDE-SHLIBS configShlibs shlibs.cfg
174 DoFilesetScript CDE-RUN configRun run.cfg
180 Log "Creating packing list."
181 touch $INSTALL_LOCATION/Packing_list
182 for i in `echo $DATABASE_FILES`
185 $TOOL_DIR/udbToAny.ksh -toDB -ReleaseStream $PLATFORM $DATABASE_DIR/${i}.udb > /tmp/${i}.db
186 if [ -r /tmp/${i}.db ]
188 for file in `fgrep install_target /tmp/${i}.db | cut -sf 2 -d \: `
190 echo "$file" >>$INSTALL_LOCATION/Packing_list
198 HASH kill these processes so that they can be removed and new ones
201 for i in inetd rpc.ttdbserver rpc.cmsd
203 if [ "$PLATFORM" = "aix" -a $i = "inetd" ]
205 lssrc -s inetd >/dev/null 2>&1
208 stopsrc -s inetd >>$LOGFILE 2>&1
210 elif [ "$PLATFORM" = openbsd ]
214 ps -ef | grep $i | grep -v grep >/tmp/tmppsout
215 if [ -s /tmp/tmppsout ]
217 awk '{print "kill " $2}' /tmp/tmppsout | /bin/csh -f
227 HASH now restart inetd
231 if [ "$PLATFORM" = "sun" -o "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ]
234 elif [ "$PLATFORM" = "aix" ]
236 startsrc -s inetd >>$LOGFILE 2>&1
237 elif [ "$PLATFORM" = "dec" ]
240 elif [ "$PLATFORM" = "openbsd" ]
253 CheckForActualLocations()
256 XCOMM if different actual locations specified, set up the links
260 if [ "$CLEAN_DAEMONS" = "yes" ]
265 HASH remove the contents of the installation directory then the directory
268 if [ "$CLEANING" = "yes" ]
270 Log "Removing $INSTALL_LOCATION contents... "
271 if [ -d $INSTALL_LOCATION ]
273 rm -rf $INSTALL_LOCATION/STAR
274 if [ "$LeaveLinks" = "yes" ]
276 if [ ! -L $INSTALL_LOCATION ]
278 rm -rf $INSTALL_LOCATION
281 if [ -L $INSTALL_LOCATION ]
283 rm -f $INSTALL_LOCATION
285 rm -rf $INSTALL_LOCATION
291 if [ "$CONFIGURE_ONLY" = "no" ]
293 if [ "$ACTUAL_INSTALLATION_LOC" != "" ]
297 HASH first create the actual directory - if not there
300 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
302 mkdir -p $ACTUAL_INSTALLATION_LOC
303 if [ ! -d $ACTUAL_INSTALLATION_LOC ]
305 Log "cannot create $ACTUAL_INSTALLATION_LOC directory"
310 ln -s $ACTUAL_INSTALLATION_LOC $INSTALL_LOCATION
313 if [ ! -d $INSTALL_LOCATION -a ! -L $INSTALL_LOCATION ];
315 mkdir -p $INSTALL_LOCATION
320 if [ "$CLEAN_DAEMONS" = "yes" ]
325 HASH remove the contents of the configuration directory
327 if [ "$CLEANING_ETC" = "yes" ]
329 Log "Removing $CONFIGURE_LOCATION contents... "
330 if [ -d $CONFIGURE_LOCATION ]
332 rm -rf $CONFIGURE_LOCATION/STAR
333 if [ "$LeaveLinks" = "yes" ]
335 if [ ! -L $CONFIGURE_LOCATION ]
337 rm -rf $CONFIGURE_LOCATION
340 if [ -L $CONFIGURE_LOCATION ]
342 rm -f $CONFIGURE_LOCATION
344 rm -rf $CONFIGURE_LOCATION
350 if [ "$ACTUAL_CONFIGURATION_LOC" != "" ]
352 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
354 mkdir -p $ACTUAL_CONFIGURATION_LOC
355 if [ ! -d $ACTUAL_CONFIGURATION_LOC ]
357 Log "cannot create $ACTUAL_CONFIGURATION_LOC directory"
362 ln -s $ACTUAL_CONFIGURATION_LOC $CONFIGURE_LOCATION
365 if [ ! -d $CONFIGURE_LOCATION -a ! -L $CONFIGURE_LOCATION ];
367 mkdir -p $CONFIGURE_LOCATION
371 if [ "$CLEANING" = "yes" ]
373 Log "Removing $LOGFILES_LOCATION contents... "
374 if [ -d $LOGFILES_LOCATION ]
376 rm -rf $LOGFILES_LOCATION/STAR
377 if [ "$LeaveLinks" = "yes" ]
379 if [ ! -L $LOGFILES_LOCATION ]
381 rm -rf $LOGFILES_LOCATION
384 if [ -L $LOGFILES_LOCATION ]
386 rm -f $LOGFILES_LOCATION
388 rm -rf $LOGFILES_LOCATION
394 if [ "$ACTUAL_VAR_LOC" != "" ]
396 if [ ! -d $ACTUAL_VAR_LOC ]
398 mkdir -p $ACTUAL_VAR_LOC
399 if [ ! -d $ACTUAL_VAR_LOC ]
401 Log "cannot create $ACTUAL_VAR_LOC directory"
406 ln -s $ACTUAL_VAR_LOC $LOGFILES_LOCATION
409 if [ ! -d $LOGFILES_LOCATION -a ! -L $LOGFILES_LOCATION ];
411 mkdir -p $LOGFILES_LOCATION
420 echo -e "Usage: $(basename $0) {-s <source>|-z <package>} [options]"
422 echo -e "\t-s <source>\t\t\tthe top of the build tree"
423 echo -e "\t-z <package>\t\tthe desktop install package"
427 echo -e "\t[-t <package_destination>]\tif specified create an"
428 echo -e "\t\t\t\t\tinstall package and store it in the"
429 echo -e "\t\t\t\t\tdestination."
430 echo -e "\t[-pI <actual install location>]\twhere" CDE_INSTALLATION_TOP "will be linked to."
431 echo -e "\t[-pC <actual config location>]\twhere" CDE_CONFIGURATION_TOP "will be linked to."
432 echo -e "\t[-pV <actual var location>]\twhere" CDE_LOGFILES_TOP "will be linked to."
434 echo -e "\t[-a <udb directory>]\t\talternate place to get the"
435 echo -e "\t\t\t\t\tudb files from."
436 echo -e "\t[-f <filesets>]\t\t\tspecify filesets to be loaded."
437 echo -e "\t\t\t\t\tThe list should be double-quoted,"
438 echo -e "\t\t\t\t\tspace-separated, with no .udb"
439 echo -e "\t\t\t\t\textensions."
441 echo -e "\t[-clean]\t\t\tremove the temporary, configuration, and"
442 echo -e "\t\t\t\t\tinstallation directory"
443 echo -e "\t[-cleanTwo]\t\t\tremove the temporary and installation "
444 echo -e "\t\t\t\t\tdirectory, but NOT the configuration directory"
445 echo -e "\t[-cleanEtc]\t\t\tremove the configuration directory, but "
446 echo -e "\t\t\t\t\NOT the temporary and installation directories"
447 echo -e "\t[-prog]\t\t\t\tload only the development environment"
448 echo -e "\t[-runtime]\t\t\tload only the runtime environment"
449 echo -e "\t[-relative]\t\t\trun the relative-located config scripts"
450 echo -e "\t[-pack]\t\t\t\tcreate a packing list"
451 echo -e "\t[-pseudo]\t\t\tdo not configure desktop when installing"
452 echo -e "\t[-nocompress]\t\t\tdo not compress tarball when creating package"
453 echo -e "\t[-lang LANG]\t\t\tspecify LANG to load appropriate localized"
454 echo -e "\t\t\t\t\tfilesets"
455 echo -e "\t[-LeaveLinks]\t\t\t\tdo not delete the links after cleaning"
457 echo -e "\t[-LinkStepOnly]\t\t\tset up the -pI, -pC, and -pV links"
458 echo -e "\t\t\t\t\tthen exit"
459 echo -e "\t[-DontRunScripts]\t\tstop after installation"
460 echo -e "\t[-RunScriptsOnly]\t\tonly execute the scripts"
461 echo -e "\t[-configureOnly]\t\tonly configure the desktop"
463 echo -e "\tExamples:"
465 echo -e "\tinstallCDE -s /x/cde_hp700_90"
466 echo -e "\tinstallCDE -s /x/cde_aix_32 -f \"CDE_MIN CDE-SHLIBS\""
467 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /bigdisk/opt/dt -clean"
468 echo -e "\tinstallCDE -s /x/cde_sun_52 -pI /dtinstall -clean\\"
469 echo -e "\t\t-pseudo -t /dtpackages -nocompress"
473 XCOMM LoadFileSet() - load a UDB file
474 XCOMM $1 - fileset number
475 XCOMM $2 - fileset name
479 if [ "$1" = "" ]; then
485 XCOMM don't bother if the fileset doesn't exist
486 if [ ! -e $DATABASE_DIR/${2}.udb ]
491 Log " $num installing database $2"
492 Log " - creating ${2}.lst file"
493 $TOOL_DIR/udbToAny.ksh -toLst -ReleaseStream $PLATFORM \
494 $DATABASE_DIR/${2}.udb > /tmp/${2}.lst
495 Log " - installing ... \c"
496 $TOOL_DIR/mkProd -D / -S $BUILD_TREE /tmp/${2}.lst \
497 2>/tmp/${2}.err 1>/tmp/${2}.good
500 Log " - checking for errors ..."
501 rm -f /tmp/${2}.missing
502 awk '{if ($1 == "ERROR:") print " " $4}' \
503 /tmp/${2}.err >> /tmp/${2}.missing
504 if [ -s /tmp/${2}.missing ]
506 Log " - missing files:"
507 cat /tmp/${2}.missing | tee -a $LOGFILE
511 ORIGINAL_COMMAND_LINE="$*"
513 XCOMM Set which system we are on
517 PLATFORM_SCRIPT_DIR=""
522 if [ $BUILDSYSTEM = "AIX" ];
525 PLATFORM_SCRIPT_DIR=ibm
526 elif [ $BUILDSYSTEM = "SunOS" ];
529 PLATFORM_SCRIPT_DIR=sun
530 elif [ $BUILDSYSTEM = "UNIX_SV" ];
533 PLATFORM_SCRIPT_DIR=usl
534 elif [ $BUILDSYSTEM = "UNIX_System_V" ];
537 PLATFORM_SCRIPT_DIR=uxp
538 elif [ $BUILDSYSTEM = "OSF1" ];
541 PLATFORM_SCRIPT_DIR=dec
542 elif [ $BUILDSYSTEM = "Linux" ];
545 PLATFORM_SCRIPT_DIR=""
546 elif [ $BUILDSYSTEM = "OpenBSD" ];
549 PLATFORM_SCRIPT_DIR=""
550 else # Build system = HP
552 PLATFORM_SCRIPT_DIR=hp
555 if [ "$PLATFORM" = "aix" ];
558 elif [ "$PLATFORM" = "sun" -o "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ];
560 USER=`/usr/ucb/whoami`
562 USER=`/usr/bin/whoami`
565 if [ "$USER" != "root" ];
568 echo "You should be root to run this script. Continuing anyway."
572 if [ "$PLATFORM" = "usl" -o "$PLATFORM" = "uxp" ]
582 COMPRESS_TARBALL="yes"
583 USE_ALTERNATE_UDB_DIR="no"
588 ACTUAL_INSTALLATION_LOC=""
589 ACTUAL_CONFIGURATION_LOC=""
591 CREATE_PACKING_LIST="no"
592 DO_LINK_STEP_ONLY="no"
595 RUN_SCRIPTS_ONLY="no"
607 Log "Options specified..."
608 while [ $# -ne 0 ]; do
610 -s) Log " - get the build tree to extract from"
619 -z) Log " - get the install package to extract from"
628 -t) Log " - where to put the install package"
634 if [ "$SOURCE_TAR_FILE" = "" ]
641 -a) Log " - alternate place to get the udb files from"
648 USE_ALTERNATE_UDB_DIR="yes"
651 -f) Log " - load specific filesets"
660 -p) Log " - get all locations"
666 ACTUAL_INSTALLATION_LOC=$1
667 ACTUAL_CONFIGURATION_LOC=$1
671 -pI) Log " - get actual installation location"
677 ACTUAL_INSTALLATION_LOC=$1
680 -pC) Log " - get actual configuration location"
686 ACTUAL_CONFIGURATION_LOC=$1
689 -pV) Log " - get actual var location"
698 -clean) Log " - delete all three cde directories"
703 -cleanTwo) Log " - delete only temporary and installation directories"
707 -cleanEtc) Log " - delete only the configuration directory"
711 -prog) Log " - load only the development environment"
716 -runtime) Log " - load only the runtime environment"
721 -relative) Log " - run the relative-located config scripts"
725 -pack) Log " - create a packing list"
726 CREATE_PACKING_LIST="yes"
729 -LeaveLinks) Log " - do not remove the links"
733 -LinkStepOnly) Log " - do link step only"
734 DO_LINK_STEP_ONLY="yes"
737 -DontRunScripts) Log " - stop after installation"
738 DO_INSTALL_ONLY="yes"
741 -RunScriptsOnly) Log " - only run scripts"
742 RUN_SCRIPTS_ONLY="yes"
745 -pseudo) Log " - pseudo install"
751 -nocompress) Log " - do not compress tarball"
752 COMPRESS_TARBALL="no"
755 -lang) Log " - load localized filesets"
764 -configureOnly) Log " - Configure only"
769 *) Log " - unknown option"
778 if [ -z "$BUILD_TREE" -a -z "$TAR_TREE" ]
784 if [ "$BUILD_TREE" != "" -a ! -d "$BUILD_TREE" ]
786 Log "Build tree does not exist."
790 if [ "$TAR_TREE" != "" -a ! -d "$TAR_TREE" ]
792 Log "Tar tree does not exist."
802 XCOMM get the current time stamp if going to create a tarball
805 if [ $TARBALL = "yes" ];
811 if [ -z "$BUILD_TREE" -a ${0##STAR/} = INSTALL.CDE ]; then
812 typeset -u CDEPACKAGE
813 typeset -u CDETARFILE
814 typeset -u CDETARFILEZ
815 typeset -u CDECONFIGDIR
818 TOOL_DIR=$BUILD_TREE/admin/IntegTools/dbTools
819 if [ "$USE_RELATIVE" = "yes" ]
821 POST_INSTALL_DIR=../post_install
823 if [ -z "$BUILD_TREE" ]
825 POST_INSTALL_DIR=$TAR_TREE/$CDECONFIGDIR
827 POST_INSTALL_DIR=$BUILD_TREE/admin/IntegTools/post_install
831 if [ "$USE_ALTERNATE_UDB_DIR" = "yes" ]
833 DATABASE_DIR=$ALTERNATE_UDB_DIR/databases
835 DATABASE_DIR=$BUILD_TREE/databases
838 if [ "$DATABASE_FILES" = "" ]
840 if [ "$DEVELOP_ENV" = "yes" ]
842 DATABASE_FILES="CDE-HELP-PRG CDE-PRG CDE-INC CDE-DEMOS \
843 CDE-MAN-DEV CDE-SHLIBS"
844 elif [ "$RUNTIME_ENV" = "yes" ]
846 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
847 CDE-HELP-C CDE-MSG-C CDE-SHLIBS CDE-ICONS CDE-FONTS \
848 CDE-INFO CDE-INFOLIB-C"
850 DATABASE_FILES="CDE-RUN CDE-MIN CDE-TT CDE-MAN CDE-HELP-RUN CDE-C \
851 CDE-MSG-C CDE-HELP-C CDE-SHLIBS CDE-HELP-PRG \
852 CDE-PRG CDE-INC CDE-DEMOS CDE-MAN-DEV CDE-ICONS \
853 CDE-FONTS CDE-INFO CDE-INFOLIB-C"
856 HASH now load any localized filesets
857 if [ "$DEVELOP_ENV" != "yes" ]
859 if [ "$theLang" != "" ]
861 DATABASE_FILES="$DATABASE_FILES CDE-$theLang CDE-MSG-$theLang \
864 HASH load all current (working) languages
865 DATABASE_FILES="$DATABASE_FILES \
882 [ -z "$INSTALL_LOCATION" ] && INSTALL_LOCATION=CDE_INSTALLATION_TOP
883 [ -z "$CONFIGURE_LOCATION" ] && CONFIGURE_LOCATION=CDE_CONFIGURATION_TOP
884 [ -z "$LOGFILES_LOCATION" ] && LOGFILES_LOCATION=CDE_LOGFILES_TOP
886 if [ -L $INSTALL_LOCATION -a "$CONFIGURE_ONLY" != "yes" ]
888 touch $INSTALL_LOCATION/foo >/dev/null 2>/dev/null
889 if [ ! -f $INSTALL_LOCATION/foo ]
891 Log "Insufficient permissions to install CDE files in $INSTALL_LOCATION"
894 if [ ! -O $INSTALL_LOCATION/foo ]
896 Log "Root access to $INSTALL_LOCATION is required for CDE installation."
899 rm $INSTALL_LOCATION/foo
902 if [ -d $INSTALL_LOCATION ]
904 if [ -x $INSTALL_LOCATION/bin -a ! -d $INSTALL_LOCATION/bin ]
906 rm -f $INSTALL_LOCATION/bin
910 if [ "$CONFIGURE_ONLY" = "yes" ]
912 CheckForActualLocations
914 Log "Configuration completed."
918 if [ "$RUN_SCRIPTS_ONLY" = "yes" ]
924 CheckForActualLocations
926 if [ "$DO_LINK_STEP_ONLY" = "yes" ]
931 if [ "$CREATE_PACKING_LIST" = "yes" ]
938 XCOMM we are ready to load the environment ...
941 if [ "$BUILD_TREE" != "" ]
943 Log "Load the Desktop from $BUILD_TREE"
947 for i in `echo $DATABASE_FILES`
949 LoadFileSet "$j" "$i"
953 Log "Load the Desktop from $TAR_TREE"
954 compressed=$(awk '/COMPRESSED: /{print $2}' $TAR_TREE/$CDEPACKAGE)
955 if [ "$compressed" = "yes" ]; then
956 uncompress <$TAR_TREE/$CDETARFILEZ | tar xvf - $INSTALL_LOCATION
958 tar -xvf $TAR_TREE/$CDETARFILE $INSTALL_LOCATION
960 DATABASE_FILES=$(awk 'BEGIN {FS=":"} /FILESETS: /{print $2}' $TAR_TREE/$CDEPACKAGE)
964 Log "Desktop installed in $INSTALL_LOCATION"
966 if [ "$DO_INSTALL_ONLY" = "yes" ]
971 if [ $TARBALL = "yes" ];
978 if [ "$RUN_SCRIPTS" = "yes" ]
983 if [ "$REMOVE_LINKS" = "yes" ]
985 [ -L /usr/dt ] && rm /usr/dt
986 [ -L /etc/dt ] && rm /etc/dt
987 [ -L /var/dt ] && rm /var/dt
992 echo "See $LOGFILE for a log of this install session."