#!/bin/csh -f # # swmtool_abs # sleep 1 # slow the shell long enough for the cmdtool to come up if ( $?CDHOME ) then # notice does not handle $CDHOME/bin/.wrapper well. Build $EXE ourselves set OS = `uname` set OSVERSION = `uname -r | sed -e 's/^5\..*/5.x/' -e 's/^4\.1\..*/4.1.x/'` set MACH = `uname -m | sed -e 's/sun4.*/sun4/'` set EXE = exe/$OS-$OSVERSION.$MACH $CDHOME/bin/$EXE/notice -Wp 350 300 "Caution" \ "Installation takes several minutes to complete." \ "There is also the possibility that the software is already installed." \ "Please read and understand the documentation before continuing." \ " " \ "Press Continue or Cancel" if ( $status != 0 ) then exit $status endif endif set PKGDIR=`cd $1;/bin/pwd` xhost +`uname -n` clear; clear echo " " echo "To install, your Super User password is needed." echo " " echo "After entering your Super User password, the system supplied" echo "Software Manager, swmtool, will be started for the installation." echo " " echo "For additional information on the use of Software Manager, press" echo "the 'Help' key after it appears on the screen; or see: " echo " " echo " Solaris 2.x Software Manager Administrator's Guide " echo " " echo " " echo "Please enter your Super User password now..." echo " " #/bin/su root -c "setenv LD_LIBRARY_PATH $OPENWINHOME/lib; /usr/sbin/swmtool -d $PKGDIR" /bin/su - root -c "$CDHOME/bin/swmtl $OPENWINHOME $PKGDIR" echo " " echo "Press Return to Exit" set junk = $< exit 0