---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Charset: us-ascii X-Sun-Content-Lines: 8 I have enclosed a finish script which installs packages and the patches. Let me know if you have any questions Thanks Caleb Warner Raytheon Company cwarner@ed.ray.com ---------- X-Sun-Data-Type: shell-script X-Sun-Data-Description: shell-script X-Sun-Data-Name: int.finish.fdd_cmd X-Sun-Charset: us-ascii X-Sun-Content-Lines: 400 #!/bin/sh # # finish # ########################################################################### # # This version of the finish script is specific to the FDD'S and CMD'S # # CMD specifics include: # X11R5 # IXImd12s # ########################################################################### set -x # Environment Settings" if [ -d /a ] then B=/a D=/tmp/install_config/int/os2.5 SERVER_JUMPSTART=`egrep cdrom /etc/mnttab | cut -f1 -d':'` else B=/ D=/jumpstart/int/os2.5 SERVER_JUMPSTART=adats1 SI_CONFIG_DIR=/jumpstart # if [ ! -d /add_ons ] # then # mkdir /add_ons # mount -r -F nfs ${SERVER_JUMPSTART}:/add_ons /add_ons # fi fi echo "MACHINE: `uname -n`" echo "JUMPSTART SERVER = $SERVER_JUMPSTART" echo "ROOT DIRECTORY = $B" echo "JUMPSTART CONIFGURATION DIRECTORY = $D" echo echo "---------------------------------------------------------------------" echo "Solaris 2.5.1 Installation Parameters" cat $D/int.prof echo "---------------------------------------------------------------------" echo ############################################################################# # # Make system specific changes # ############################################################################# # Set the root passwd # # THIS IS NOT NECESSARY FOR ADATS WE COPY IN A MASTER PASSWD FILE # # echo "Setting root password ..." # PASSWD=WUQ6XI7pbxmzg # mv $B/etc/shadow $B/etc/shadow.orig # sed -e "s/root::6445:/root:$PASSWD:6445:/" $B/etc/shadow.orig > $B/etc/shadow # set the flag so sysidroot won't prompt for the root password # # REQUIRED FOR ALL ADATS MACHINES # echo "Removing prompt for root password at boot time ..." sed -e 's/0 # root/1 # root/' ${SI_SYS_STATE} > /tmp/state.$$ mv /tmp/state.$$ ${SI_SYS_STATE} rm -f $B/etc/shadow.orig # Allow remote root login # # REQUIRED FOR ALL ADATS MACHINES # echo "Allowing remote root logins ..." cp $B/etc/default/login $B/etc/default/login.orig sed 's/^CONSOLE/#CONSOLE/' $B/etc/default/login.orig > $B/etc/default/login rm -f $B/etc/default/login.orig # Allow tftp # # REQUIRED FOR RDP TO LOAD UCONX BOXES # # echo "Allowing tftp ..." # cp $B/etc/inetd.conf $B/etc/inetd.conf.orig # sed 's/#tftp/tftp/' $B/etc/inetd.conf.orig > $B/etc/inetd.conf # rm -f $B/etc/inetd.conf.orig # Allow remote root rsh, and backups to run # # NOT USED IN ADATS, WE ARE MORE LIBERAL! (SECURITY WE DON'T NEED NO STINK'IN SECURITY) # # echo "+ root" > $B/.rhosts # Allow everyone to rsh to machine # # REQUIRED FOR ALL ADATS MACHINES # echo "Allowing all rsh sessions to machine ..." echo "+ +" > $B/.rhosts # Change permissions on /.rhosts chmod 644 $B/.rhosts # Remove ttdbserv # # REQUIRED FOR ALL ADATS MACHINES # echo "Removing ttdbserv startup ..." cp $B/etc/inet/inetd.conf $B/etc/inet/inetd.conf.orig sed 's/^100083/#100083/' $B/etc/inet/inetd.conf.orig > $B/etc/inet/inetd.conf rm -f $B/etc/inet/inetd.conf.orig # Change root shell from bourne to c-shell # # REQUIRED FOR ALL ADATS MACHINES # echo "Changing root shell to C-shell ..." cp $B/etc/passwd $B/etc/passwd.orig sed 's/\/sbin\/sh/\/usr\/bin\/csh/' $B/etc/passwd.orig > $B/etc/passwd rm -f $B/etc/passwd.orig # Disable Routing # # REQUIRED FOR ALL ADATS MACHINES BUT CERTAIN SDD'S # echo "Disabling routing ..." touch $B/etc/notrouter # Install ADATS Custom files from jumpstart server # echo "Installing ADATS custom files ... " mount 138.125.60.1:/local1/jumpstart/int/reloc /mnt # # This line allows to copy all files in the $D/../reloc file with no comments in the 'finish.log' file # NOT USED BY ADATS # # (cd /mnt; tar cf - . ) | (cd $B/; tar xBpf - ) # # REQUIRED FOR ALL ADATS MACHINES # custom group file (for autosu) # custom hosts file (might need to change per site or something) # custom passwd file (int account, psl account) # custom shadow file (int passwd,root passwd,psl passwd) # custom system file (shared memory settings) (may be different for SDDs?) # custom S20system file (enable savecore feature) # custom S98ADATS_net_custom file (Change UDP Settings) # custom PPP files (The custom ppp files in the /etc/ppp directory) echo "Installing ADATS custom files: group hosts passwd shadow system " echo " rc2.d/S20system rc2.d/S98adats_net_custom" echo " ppp files" (cd /mnt/etc; tar cf - .) | (cd $B/etc;tar xBpf - ) # # NOT REQIRED FOR CODE COMPILED UNDER 2.5 # # NOT REQURIED FOR RDPS'S # # echo "Installing ADATS custom files: IXImd12s" # (cd /mnt/local;tar cf - IXImd12s) | (cd $B/local;tar xBpf -) # # REQUIRED FOR ALL ADATS MACHINES (or Wassim will kill me) # echo "Installing ADATS custom files: emacs" # (cd /mnt/local;tar cf - bin) | (cd $B/local;tar xBpf -) # (cd /mnt/local;tar cf - lib) | (cd $B/local;tar xBpf -) # # REQUIRED FOR ALL ADATS MACHINES (like we could run without int!) # echo "Installing ADATS custom files: /local/users/int" (cd /mnt/local;tar cf - users) | (cd $B/local;tar xBpf -) # # REQUIRED FOR ALL CODE COMPILED UNDER 2.5 # # (cd /usr/openwin/lib for file in `ls lib*` do ln -s /usr/openwin/lib/$file $B/usr/lib/$file done ) (cd /usr/dt/lib for file in `ls lib*` do ln -s /usr/dt/lib/$file $B/usr/lib/$file done ) # # REQUIRED FOR ALL ADATS MACHINES # GIVES US new_bx, traceroute, top, autosu # echo "Installing ADATS custom files: /usr/local" (cd /mnt/usr;tar cf - local) | (cd $B/usr;tar xBpf -) # # REQUIRED FOR LARGE BARCO DISPLAYS ONLY # # echo "Installing ADATS custom files: BIT3 Driver files" # (cd /mnt/dev;tar cf - .) | (cd $B/dev;tar xBpf -) # cp /mnt/kernel/drv/bts $B/kernel/drv/bts # cp /mnt/usr/include/sys/btio.h $B/usr/include/sys/btio.h # cp /mnt/usr/include/sys/btsio.h $B/usr/include/sys/btsio.h # (cd /mnt/local;tar cf - 944) | (cd $B/local;tar xBpf -) # # REQUIRED FOR RDP'S, AIS ONLY However copying to all files # echo "Installing ADATS custom files: PPP" (cd /mnt/opt;tar cf - .) | (cd $B/opt;tar xBpf - ) # # REQUIRED FOR RDP'S ONLY # # echo "Installing ADATS custom files: UconX" # (cd /mnt/usr;tar cf - .) | (cd $B/usr;tar xBpf - ) umount /mnt # Change ownership of int directory # # REQUIRED FOR ALL ADATS WORKSTATIONS # echo "Changing ownership of int account ..." chown -R int $B/local/users/int # Create links required # # SHOULD NOT BE NEEDED ONCE FINIAL TRANSITION TO 2.5 IS DONE # # NOT NEEDED FOR RDPS'S # echo "Creating necessary symbolic links for X11 (backwards compatability 2.3) ..." ln -s /usr/openwin/bin $B/usr/bin/X11 ln -s /usr/openwin/lib $B/usr/lib/X11 # # SHOULD NOT BE NEEDED ONCE FINIAL TRANSITION TO 2.5 IS DONE # # NOT NEEDED FOR RDPS'S # # echo "Creating necessary symbolic links for Motif (backwards compatability 2.3) ..." # ln -s /local/IXImd12s $B/opt/IXImd12s # ln -s /usr/lib $B/lib # # NEEDED BY ALL ADATS WORKSTATIONS FOR EMACS # echo "Create necessary symbolic links for /usr/local/lib ..." ln -s /local/lib $B/usr/local/lib # # NEEDED BY LARGE SCREEN BARCOS ONLY # # echo "Create necessary symbolic links for BARCO Drivers ..." # ln -s /local/955 $B/usr/local/944 # # NEEDED BY RDPS'S ONLY # # echo "Create necessary symbolic links for UconX ..." # ln -s /usr/UconX_no_ints $B/usr/UconX # Add packages from remote servers mount 138.125.60.1:/local1 /mnt prtconf | egrep "csfour|cseight" if [ $? -eq 0 ] then echo "Installing the AURORA Packages" pkgadd -a /mnt/packages/noask_pkgadd -d /mnt/packages -r /mnt/packages/AURAcs.resp -R $B AURAcs fi # # REQUIRED BY ALL ADATS WORKSTATIONS # # Add patches echo "Installing patches ..." $SI_CONFIG_DIR/int/add_patch.fin \ 138.125.60.1:/local1/patches/patches_2.5.1 patches.2.5.1 # # STARS LEFTOVER CODE. WE MAY USE AT SOME TIME (HEADLESS MACHINES?) # # Setup EEPROM # if [ -f $D/files/eeprom.data ] # then # eeprom - < $D/files/eeprom.data # fi # # STARS LEFTOVER CODE # # Setup crontab # if [ -f $D/files/crontab.data ] # then # crontab $D/files/crontab.data # fi # # REQUIRED BY ALL ADATS MACHINES # # Update /etc/rc2.d files echo "Updating rc2.d files ..." cd $B/etc/rc2.d #echo " moving S30sysid.net" #mv S30sysid.net s30sysid.net #echo " moving S71sysid.sys" #mv S71sysid.sys s71sysid.sys echo " moving S72autoinstall" mv S72autoinstall s72autoinstall echo " moving S80PRESERVE" mv S80PRESERVE s80PRESERVE echo " moving S92volmgt" mv S92volmgt s92volmgt echo " moving S88sendmail" mv S88sendmail s88sendmail #mv S74syslog s74syslog #echo " moving S72inetsvc" #mv S72inetsvc s72inetsvc # # REQUIRED BY ALL ADATS MACHINES EXCEPT DMS? AND SMF? # # Update /etc/rc3.d files echo "Updating rc3.d files ..." cd $B/etc/rc3.d echo " moving S16nfs.server" mv S15nfs.server s15nfs.server # # REQUIRED FOR ALL ADATS WORKSTATIONS # # Setup 2nd and 3rd interface echo "Setting up second interface ..." dmesg | grep "^le0" if [ $? -eq 0 ] then echo "`uname -n`-2" >$B/etc/hostname.le1 fi dmesg | grep "^le1" if [ $? -eq 0 ] then echo "`uname -n`-3" >$B/etc/hostname.le1 fi # # REQUIRED FOR ALL ADATS WORKSTATIONS # # Disable NIS echo "Disabling NIS ..." echo " Moving defaultdomain" mv $B/etc/defaultdomain $B/etc/defaultdomain.orig echo " Installing default nsswitch.conf file" cp $B/etc/nsswitch.files $B/etc/nsswitch.conf # # REQUIRED FOR LARGE BARCOS ONLY # # Install BIT3 Drivers # echo "Install BIT3 Driver for the VME Card ..." # grep -s "type=ddi_pseudo;name=BIT3,bts" /etc/devlink.tab # if [ $? -eq 1 ] # then # echo "type=ddi_pseudo;name=BIT3,bts \M0" >> $B/etc/devlink.tab # fi # # grep -s "forceload: drv.bts" /etc/system # if [ $? -eq 1 ] # then # echo "forceload: drv.bts" >> $B/etc/system # fi # # add_drv -m "\"* 066 root sys\"" -i "\"BIT3,bts bts\"" -b $B # # REQUIRED FOR RDPS'S ONLY # # Add line to /etc/services for UconX echo "Updating /etc/services file for the UconX ..." grep -s "mps" /etc/services if [ $? -eq 1 ] then echo "mps 5000/tcp" >> $B/etc/services fi # Add the motd # ${SI_CONFIG_DIR}/scripts/add_motd.fin