---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Charset: us-ascii X-Sun-Content-Lines: 43 Thank you! Thank you! Thank you!! I knew the Sun Managers list would be the place to go for help. Thanks to: Mark Hargrave, Sr. for the 4.1.4 patching script (hargrme@wisdom.maf.nasa.gov) Daniel Polombo for the 4.1.3 patching script (daniel.polombo@detexis.thomas-csf.com) (I translated you comments into English with my best high school french :) ) I have also attached a copy of Daniel's modified script that we're using. These scripts have cut our patching time from about 3 hrs/workstation to ~1/2 hr./workstation !!!!! Thanks again! ----- Begin Included Message ----- >From rdispenz@sector.kodak.com Mon Jun 21 08:09 EDT 1999 Date: Mon, 21 Jun 1999 08:18:31 -0400 To: sun-managers@sunmanagers.ececs.uc.edu Subject: Sun O/S patching Cc: rdispenz@bullrider.sector.kodak.com Sun Managers, Does anyone have a patching script for SUN O/S 4.1.x ? We are on a Y2K, mission critical upgrade path with some 4.1.x (4.1.2, 4.1.3, 4.1.3u) O/S's. Solaris has the addpatch utility, but I don't remember SUN O/S having anything similar. Can anyone help me out with this request? Thanks, Robin Dispenza System Administrator Eastman Kodak Co. ----- End Included Message ----- ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: SunOS_4.1.3_patch_script X-Sun-Charset: iso-8859-1 X-Sun-Content-Lines: 485 # Script to install patches recommended for year 2000 for SunOS 4.1.3U1vB # Created on this day: Thursday 13 march 1999 # Rev : 3 # # Original comments below # Script d'installation des patchs an 2000 recommandés pour SunOS 4.1.3U1vB # Dernière mise à jour : mardi 13 mars 1999 # Rev : 3 # This script is run by the super-user # It must be done in single-user mode (/etc/reboot -- -s) # # Original comments below # Ce script doit être éxécuté par le super-user, # impérativement en mode single-user (/etc/reboot -- -s) #!/bin/sh echo "Recommended patch installation for year 2000 for SunOS_4.1.3U1vB" echo "You need to be in single-user mode to use this script." echo "Hit Return to continue (or ctrl-C to quit)." # Original script follows #echo "Installation des patchs an 2000 recommandés pour SunOS 4.1.3U1vB" #echo "Vous devez être en mode single-user pour utiliser ce script" #echo "Appuyez sur une touche pour continuer (ou ctrl-C pour quitter)." read pok PATH=/bin:/usr/bin:/sbin:/usr/sbin:/etc # Show the directory containing the patches # Recherche du répertoire contenant les patchs PATCH_DIR=`pwd` echo " The patches to install are in the $PATCH_DIR (y/n)?" #echo "Les patchs à appliquer sont-ils bien dans $PATCH_DIR (O/n)?" read patch if [ "$patch" = "n" ] then echo " Alright then where are the patches?" #echo "D'accord. Où sont les patchs, alors?" read PATCH_DIR fi # Specify the path of OPENWINHOME # Recherche du répertoire OPENWINHOME OPENWINHOME=/usr/openwin echo "Modify the path of OPENWINHOME [$OPENWINHOME] (y/n)?" #echo "Modifier le répertoire OPENWINHOME [$OPENWINHOME] (o/N)?" read change if [ "$change" = "y" ] then echo " What is the path for OPENWINHOME?" #echo "Quel est le chemin d'OPENWINHOME?" read OPENWINHOME fi # Create a directory to safeguard the original files being patched # Création du répertoire où sauvegarder les fichiers á patcher if [ ! -d /usr/non_patches ] then mkdir /usr/non_patches fi # Patching 100462-32 (filemgr) echo "Patching 100462-32 (file manager) ... " cd $OPENWINHOME/bin/xview if [ ! -f /usr/non_patches/filemgr ] then cp filemgr /usr/non_patches fi cp $PATCH_DIR/100462-32/sun4/filemgr . chmod 755 filemgr if [ ! -f /etc/install/patch_100462-32 ] then echo "Patch-ID# 100462-32" > /etc/install/patch_100462-32 echo "/usr/openwin/bin/xview/filemgr" >> /etc/install/patch_100462-32 echo "" >> /etc/install/patch_100462-32 fi echo "Patching ok!" # Patching 100523-24 (calendar manager) echo "Patching 100523-24 (calendar manager) ... " cd $OPENWINHOME/bin/xview if [ ! -f /usr/non_patches/cm ] then cp cm cm_delete cm_insert cm_lookup rpc.cmsd /usr/non_patches/ fi cp $PATCH_DIR/100523-24/sun4/* . chmod 755 cm chmod 755 cm_delete chmod 755 cm_insert chmod 755 cm_lookup chmod 755 rpc.cmsd if [ ! -f /etc/install/patch_100523-24 ] then echo "Patch-ID# 100523-24" > /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm_delete" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm_insert" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm_lookup" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/rpc.cmsd" >> /etc/install/patch_100523-24 echo "" >> /etc/install/patch_100523-24 fi echo "Patch ok!" # Patching 100544-12 (mailtool) echo "Patching 100544-12 (mailtool) ... " cd $OPENWINHOME/bin if [ ! -f /usr/non_patches/mailtool ] then cp mailtool /usr/non_patches fi cp $PATCH_DIR/100544-12/sun4/mailtool . chmod 2755 mailtool chgrp news mailtool if [ ! -f /etc/install/patch_100544-12 ] then echo "Patch-ID# 100544-12" > /etc/install/patch_100544-12 echo "/usr/openwin/bin/mailtool" >> /etc/install/patch_100544-12 fi echo "Patch ok!" # Patching 100638-03 (perfmeter) echo "Patching 100638-03 (perfmeter) ... " cd $OPENWINHOME/bin if [ ! -f /usr/non_patches/perfmeter ] then cp perfmeter /usr/non_patches fi cp $PATCH_DIR/100638-03/sun4/perfmeter . chmod 755 perfmeter if [ ! -f /etc/install/patch_100638-03 ] then echo "Patch-ID# 100638-03" > /etc/install/patch_100638-03 echo "/usr/openwin/bin/perfmeter" >> /etc/install/patch_100638-03 echo "" >> /etc/install/patch_100638-03 fi echo "Patch ok!" # Patching 100728-03 (xterm) echo "Patching 100728-03 (xterm) ... " cd $OPENWINHOME/bin if [ ! -f /usr/non_patches/xterm ] then cp xterm /usr/non_patches fi cp $PATCH_DIR/100728-03/sun4/xterm . chmod 755 xterm if [ ! -f /etc/install/patch_100728-03 ] then echo "Patch-ID# 100728-03" > /etc/install/patch_100728-03 echo "/usr/openwin/bin/xterm" >> /etc/install/patch_100728-03 echo "" >> /etc/install/patch_100728-03 fi echo "Patch ok!" # Patching 105135-03 (date) echo "Patching 105135-03 (date) ... " cd /bin if [ ! -f /usr/non_patches/date ] then cp date /usr/non_patches fi cp $PATCH_DIR/105135-03/date . chmod 755 date chown root.staff /bin/date if [ ! -f /etc/install/patch_105135-03 ] then echo "Patch-ID# 105135-03" > /etc/install/patch_105135-03 echo "/bin/date" >> /etc/install/patch_105135-03 echo "" >> /etc/install/patch_105135-03 fi echo "Patch ok!" # Patching 105136-01 (bar) echo "Patching 105136-01 (bar) ... " cd /bin if [ ! -f /usr/non_patches/bar ] then cp bar /usr/non_patches fi cp $PATCH_DIR/105136-01/bar . chmod 755 bar chown root.staff bar if [ ! -f /etc/install/patch_105136-01 ] then echo "Patch-ID# 105136-01" > /etc/install/patch_105136-01 echo "/bin/bar" >> /etc/install/patch_105136-01 echo "" >> /etc/install/patch_105136-01 fi echo "Patch ok!" # Patching 105137-03 (w) echo "Patching 105137-03 (w) ... " cd /usr/kvm if [ ! -f /usr/non_patches/w ] then cp w /usr/non_patches fi cp $PATCH_DIR/105137-03/`uname -m`/w . chmod 2755 w chown root.kmem w if [ ! -f /etc/install/patch_105137-03 ] then echo "Patch-ID# 105137-03" > /etc/install/patch_105137-03 echo "/usr/kvm/w" >> /etc/install/patch_105137-03 echo "" >> /etc/install/patch_105137-03 fi echo "Patch ok!" # Patching 105153-03 (passwd) echo "Patching 105153-03 (passwd) ... " cd /bin if [ ! -f /usr/non_patches/passwd ] then cp passwd /usr/non_patches fi cp $PATCH_DIR/105153-03/passwd . chmod 4755 passwd chown root.staff passwd if [ ! -f /etc/install/patch_105153-03 ] then echo "Patch-ID# 105153-03" > /etc/install/patch_105153-03 echo "/bin/passwd" >> /etc/install/patch_105153-03 echo "" >> /etc/install/patch_105153-03 fi echo "Patch ok!" # Patching 105138-01 (eeprom) echo "Patching 105138-01 (eeprom) ... " arch=`uname -m` if [ "$arch" = "sun4" ] then cd /usr/kvm if [ ! -f /usr/non_patches/eeprom ] then cp eeprom /usr/non_patches fi cp $PATCH_DIR/105138-01/sun4/eeprom . chmod 755 eeprom chown root.kmem eeprom fi if [ ! -f /etc/install/patch_105138-01 ] then echo "Patch-ID# 105138-01" > /etc/install/patch_105138-01 echo "/usr/kvm/eeprom" >> /etc/install/patch_105138-01 echo "" >> /etc/install/patch_105138-01 fi echo "Patch ok!" # Patching 101437-02 (accounting) echo "Patching 101437-02 (accounting) ... " cd /usr/lib/acct if [ ! -f /usr/non_patches/acctcms ] then cp acctcms acctprc1 acctprc2 acctcon1 acctcom /usr/non_patches fi cp $PATCH_DIR/101437-02/acctcms . cp $PATCH_DIR/101437-02/acctprc1 . cp $PATCH_DIR/101437-02/acctprc2 . cp $PATCH_DIR/101437-02/acctcom /usr/bin cp $PATCH_DIR/101437-02/acctcon1 . cp $PATCH_DIR/101437-02/utmp2wtmp . fi echo "Patch ok!" # Patching 105139-02 (at) echo "Patching 105139-02 (at) ... " cd /bin if [ ! -f /usr/non_patches/at ] then cp at atq /usr/non_patches cp $PATCH_DIR/105139-02/at . cp $PATCH_DIR/105139-02/atq . fi chmod 4755 at chmod 4755 atq chown root.staff at chown root.staff atq if [ ! -f /etc/install/patch_105139-02 ] then echo "Patch-ID# 105139-02" > /etc/install/patch_105139-02 echo "/bin/at" >> /etc/install/patch_105139-02 echo "/bin/atq" >> /etc/install/patch_105139-02 echo "" >> /etc/install/patch_105139-02 fi echo "Patch ok!" # Patching 105140-01 (sccs) echo "Patching 105140-01 (sccs) ... " cd /usr/sccs if [ ! -f /usr/non_patches/admin ] then cp * /usr/non_patches fi cd $PATCH_DIR/105140-01 cp cdc get rmdel comb prs sact admin delta prt unget /usr/sccs chmod 755 /usr/sccs/* chown root.staff /usr/sccs/* if [ ! -f /etc/install/patch_105140-01 ] then echo "Patch-ID# 105140-01" > /etc/install/patch_105140-01 echo "/usr/sccs/cdc" >> /etc/install/patch_105140-01 echo "/usr/sccs/get" >> /etc/install/patch_105140-01 echo "/usr/sccs/rmdel" >> /etc/install/patch_105140-01 echo "/usr/sccs/comb" >> /etc/install/patch_105140-01 echo "/usr/sccs/prs" >> /etc/install/patch_105140-01 echo "/usr/sccs/sact" >> /etc/install/patch_105140-01 echo "/usr/sccs/admin" >> /etc/install/patch_105140-01 echo "/usr/sccs/delta" >> /etc/install/patch_105140-01 echo "/usr/sccs/prt" >> /etc/install/patch_105140-01 echo "/usr/sccs/unget" >> /etc/install/patch_105140-01 echo "" >> /etc/install/patch_105140-01 fi echo "Patch ok!" # Patching 105141-01 (troff macros) echo "Patching 105141-01 (macros troff) ... " cd /usr/lib/tmac if [ ! -f /usr/non_patches/tmac.an ] then cp tmac.an tmac.os tmac.e tmac.s /usr/non_patches fi cp $PATCH_DIR/105141-01/tmac.an . cp $PATCH_DIR/105141-01/tmac.os . cp $PATCH_DIR/105141-01/tmac.e . cp $PATCH_DIR/105141-01/tmac.s . chmod 644 /usr/lib/tmac/* chown root.staff /usr/lib/tmac/* if [ ! -f /etc/install/patch_104141-01 ] then echo "Patch-ID# 104141-01" > /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.an" >> /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.os" >> /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.e" >> /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.s" >> /etc/install/patch_104141-01 echo "" >> /etc/install/patch_104141-01 fi echo "Patch ok!" # Patching 105142-01 (touch) echo "Patching 105142-01 (touch) ... " cd /usr/5bin/ if [ ! -f /usr/non_patches/touch ] then cp touch /usr/non_patches fi cp $PATCH_DIR/105142-01/touch . chmod 755 touch chown root.staff touch if [ ! -f /etc/install/patch_105142-01 ] then echo "Patch-ID# 105142-01" > /etc/install/patch_105142-01 echo "/usr/5bin/touch" >> /etc/install/patch_105142-01 echo "" >> /etc/install/patch_105142-01 fi echo "Patch ok!" # Patching 106181-02 (date) echo "Patching 106181-02 (date) ... " cd /usr/5bin if [ ! -f /usr/non_patches/5date ] then cp date /usr/non_patches/5date fi cp $PATCH_DIR/106181-02/date . chmod 755 date chown root.staff date if [ ! -f /etc/install/patch_106181-02 ] then echo "Patch-ID# 106181-02" > /etc/install/patch_106181-02 echo "/usr/5bin/date" >> /etc/install/patch_106181-02 echo "" >> /etc/install/patch_106181-02 fi echo "Patch ok!" # Patching 107222-01 (easyinstall) echo "Patching 107222-01 (easyinstall) ... " cd /usr/etc/install if [ ! -f /usr/non_patches/easyinstall ] then cp easyinstall /usr/non_patches fi cp $PATCH_DIR/107222-01/easyinstall . chmod 755 easyinstall chown root.staff easyinstall if [ ! -f /etc/install/patch_107222-01 ] then echo "Patch-ID# 107222-01" > /etc/install/patch_107222-01 echo "/usr/etc/install/easyinstall" >> /etc/install/patch_107222-01 echo "" >> /etc/install/patch_107222-01 fi echo "Patch ok!" # Patching 105465-02 (sendmail) echo "Patching 105465-02 (sendmail) ... " if [ ! -f /usr/non_patches/sendmail ] then cp /usr/lib/sendmail /usr/non_patches/sendmail.v5 cp /usr/lib/sendmail.mx /usr/non_patches/sendmail.mx.v5 cp /usr/ucb/vacation /usr/non_patches/vacation.v5 cp /usr/etc/mconnect /usr/non_patches/mconnect.v5 cp /usr/etc/mailstats /usr/non_patches/mailstats.v5 cp /usr/man/man8/sendmail.8 /usr/non_patches/sendmail.8.v5 cp /etc/sendmail.cf /usr/non_patches/sendmail.cf.v5 cp /usr/lib/sendmail.subsidiary.cf /usr/non_patches/sendmail.subsidiary.cf.v5 cp /usr/lib/sendmail.main.cf /usr/non_patches/main.cf.v5 fi if [ ! -d /etc/mail ] then mkdir /etc/mail fi cd $PATCH_DIR/105465-02 cp sendmail /usr/lib cp sendmail.mx /usr/lib cp vacation /usr/ucb cp mconnect /usr/etc cp mailstats /usr/etc cp sendmail.8 /usr/man/man8 cp sendmail.cf /etc/mail cp main.cf /etc/mail cp subsidiary.cf /etc/mail cp sendmail.hf /etc/mail cp aliases /etc/mail chmod 4551 /usr/lib/sendmail chown root.staff /usr/lib/sendmail chmod 4551 /usr/lib/sendmail.mx chown root.staff /usr/lib/sendmail.mx if [ ! -f /etc/install/patch_105465-02 ] then echo "Patch-ID# 105465-02" > /etc/install/patch_105465-02 echo "/usr/lib/sendmail" >> /etc/install/patch_105465-02 echo "/usr/lib/sendmail.mx" >> /etc/install/patch_105465-02 echo "/usr/ucb/vacation" >> /etc/install/patch_105465-02 echo "/usr/etc/mconnect" >> /etc/install/patch_105465-02 echo "/usr/etc/mailstats" >> /etc/install/patch_105465-02 echo "/usr/man/man8/sendmail.8" >> /etc/install/patch_105465-02 echo "/usr/lib/sendmail.main.cf" >> /etc/install/patch_105465-02 echo "/etc/sendmail.cf" >> /etc/install/patch_105465-02 echo "/etc/mail/sendmail.hf" >> /etc/install/patch_105465-02 echo "/usr/lib/sendmail.subsidiary.cf" >> /etc/install/patch_105465-02 echo "" >> /etc/install/patch_105465-02 echo "Patch ok!" # Patching 106859-01 (sundiag) echo "Patching 106859-01 (sundiag) ..." if [ -d /usr/diag/sundiag ] then if [ ! -f /usr/non_patches/audbri ] then cp /usr/diag/sundiag/* /usr/non_patches fi cp -p $PATCH_DIR/106859-01/sundiag/* /usr/diag/sundiag fi if [ ! -f /etc/install/patch_106859-01 ] then echo "/usr/diag/sundiag/*" >> /etc/install/patch_106859-01 echo "" >> /etc/install/patch_106859-01 fi echo "Patch ok!" # Patching 101558-12 (international libc) echo "Patching 101558-12 (libc) ... " if [ ! -f /usr/non_patches/libc.so.1.9 ] then cp /usr/5lib/libc.so.2.9 /usr/5lib/libc.sa.2.9 /usr/lib/libc.so.1.9 /usr/lib/libc.sa.1.9 /usr/lib/libc.a /usr/lib/libc_p.a /usr/5lib/libc.a /usr/5lib/libc_p.a /usr/lib/libbsdmalloc.a /usr/non_patches fi cp -r -p $PATCH_DIR/101558-12/lib/* /usr/lib cp -r -p $PATCH_DIR/101558-12/5lib/* /usr/5lib cd /usr/lib mv libc.so19 libc.so.1.9 mv libc.sa19 libc.sa.1.9 echo "Test the date information : " #echo "Test de l'affichage de la date : " echo `date` echo "Has the test been sucessfully passed (y/n)?" #echo "Le test s'est-il bien passe (o/n)?" read testdate if [ "$testdate" = "n" ] then echo " Let's move the old libraries back - the date test failed ..." #echo "On remet les anciennes libs en place ..." cp /usr/non_patches/libc.so.1.9 /usr/non_patches/libc.sa.1.9 ./ fi cd /usr/5lib mv libc.so29 libc.so.2.9 mv libc.sa29 libc.sa.2.9 ranlib -t /usr/lib/libc*a* ranlib -t /usr/5lib/libc*a* ranlib -t /usr/lib/libbsdmalloc.a if [ ! -f /etc/install/patch_101558-12 ] then echo "Patch-ID# 101558-12" > /etc/install/patch_101558-12 echo "/usr/lib/libc.a" >> /etc/install/patch_101558-12 echo "/usr/lib/libc_p.a" >> /etc/install/patch_101558-12 echo "/usr/lib/libc.so.1.9" >> /etc/install/patch_101558-12 echo "/usr/lib/libc.sa.1.9" >> /etc/install/patch_101558-12 echo "/usr/lib/libbsdmalloc.a" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc.a" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc_p.a" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc.so.2.9" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc.sa.2.9" >> /etc/install/patch_101558-12 echo "" >> /etc/install/patch_101558-12 fi echo "Patch ok!" ---------- X-Sun-Data-Type: default-app X-Sun-Data-Description: default X-Sun-Data-Name: SunOS_4.1.4_patch_script X-Sun-Charset: us-ascii X-Sun-Content-Lines: 79 echo "Patch-ID# 100523-24" cd /usr/openwin/bin/xview mv cm cm.30fcs mv cm_delete cm_delete.30fcs mv cm_insert cm_insert.30fcs mv cm_lookup cm_lookup.30fcs mv rpc.cmsd rpc.cmsd.30fcs rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/100523-24/sun4/cm . rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/100523-24/sun4/cm_delete . rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/100523-24/sun4/rpc.cmsd . rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/100523-24/sun4/cm_insert . rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/100523-24/sun4/cm_lookup . chmod 755 cm chmod 755 cm_delete chmod 755 cm_insert chmod 755 cm_lookup chmod 755 rpc.cmsd # echo "Patch-ID# 105143-03" mv /bin/date /bin/date.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105143-03/date /bin/date chmod 755 /bin/date chown root.staff /bin/date chown root.staff /bin/date # echo "Patch-ID# 105144-01" mv /bin/bar /bin/bar.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105144-01/bar /bin chmod 755 /bin/bar chown root.staff /bin/bar # echo "Patch-ID# 105145-01" mv /usr/kvm/w /usr/kvm/w.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105145-01/w /usr/kvm/w chmod 2755 /usr/kvm/w chown root.kmem /usr/kvm/w # echo "Patch-ID# 105146-01" cp /usr/bin/passwd /usr/bin/passwd.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105146-01/passwd /usr/bin chmod 4755 /usr/bin/passwd chown root.staff /usr/bin/passwd # echo "Patch-ID# 105148-01" mv /usr/lib/acct/acctcms /usr/lib/acct/acctcms.FCS mv /usr/lib/acct/acctprc1 /usr/lib/acct/acctprc1.FCS mv /usr/lib/acct/acctcon1 /usr/lib/acct/acctcon1.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105148-01/acctcms /usr/lib/acct rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105148-01/acctprc1 /usr/lib/acct rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105148-01/acctcon1 /usr/lib/acct rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105148-01/utmp2wtmp /usr/lib/acct chmod 755 /usr/lib/acct/* chown root.staff /usr/lib/acct/* # echo "Patch-ID# 105149-01" mv /bin/at /bin/at.FCS mv /bin/atq /bin/atq.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105149-01/at /bin rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105149-01/atq /bin chmod 4755 /bin/at chown root.staff /bin/at chmod 4755 /bin/atq chown root.staff /bin/atq # echo "Patch-ID# 105151-01" mv /usr/lib/tmac/tmac.e /usr/lib/tmac/tmac.e.FCS mv /usr/lib/tmac/tmac.os /usr/lib/tmac/tmac.os.FCS mv /usr/lib/tmac/tmac.s /usr/lib/tmac/tmac.s.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105151-01/tmac.e /usr/lib/tmac rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105151-01/tmac.os /usr/lib/tmac rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105151-01/tmac.s /usr/lib/tmac chmod 644 /usr/lib/tmac/* chown root.staff /usr/lib/tmac/* # echo "Patch-ID# 105152-01" mv /usr/5bin/touch /usr/5bin/touch.FCS rcp ra:/home/patch/sun/SunOS_4_1_4/y2000/105152-01/touch /usr/5bin/touch chmod 755 /usr/5bin/touch chown root.staff /usr/5bin/touch ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: rev_413_patch_script X-Sun-Charset: iso-8859-1 X-Sun-Content-Lines: 456 # Script to install patches recommended for year 2000 for SunOS 4.1.3U1vB # Revised on : Thursday 23 June 1999 # Rev : 4 # # Libraries should be patched in single-user mode (/etc/reboot -- -s) # #!/bin/sh echo "Recommended patch installation for year 2000 for SunOS_4.1.3U1vB" echo "You should to be in single-user mode to use this script." echo "Hit Return to continue (or ctrl-C to quit)." PATH=/bin:/usr/bin:/sbin:/usr/sbin:/etc # # Specify the path to the patches directory # #PATCH_DIR=`pwd` #echo " The patches to install are in the $PATCH_DIR (y/n)?" #echo "Les patchs à appliquer sont-ils bien dans $PATCH_DIR (O/n)?" #read patch #if [ "$patch" = "n" ] #then echo " Enter the path to the patches directory:" read PATCH_DIR fi # # Specify the path of OPENWINHOME # OPENWINHOME=/usr/openwin echo "Modify the path of OPENWINHOME [$OPENWINHOME] (y/n)?" read change if [ "$change" = "y" ] then echo " What is the path for OPENWINHOME?" read OPENWINHOME fi # # Let's get the show on the road! # # Patching 100462-32 (filemgr) echo "Patching 100462-32 (file manager) ... " cd $OPENWINHOME/bin/xview mv filemgr filemgr.30fcs cp $PATCH_DIR/100462-32/sun4/filemgr . chmod 755 filemgr if [ ! -f /etc/install/patch_100462-32 ] then echo "Patch-ID# 100462-32" > /etc/install/patch_100462-32 echo "/usr/openwin/bin/xview/filemgr" >> /etc/install/patch_100462-32 echo "" >> /etc/install/patch_100462-32 fi echo "Patch 100462-32 installed!" # Patching 100523-24 (calendar manager) echo "Patching 100523-24 (calendar manager) ... " cd $OPENWINHOME/bin/xview mv cm cm.30fcs mv cm_delete cm_delete.30fcs mv cm_insert cm_insert.30fcs mv cm_lookup cm_lookup.30fcs mv rpc.cmsd rpc.cmsd.30fcs cp $PATCH_DIR/100523-24/sun4/* . chmod 755 cm chmod 755 cm_delete chmod 755 cm_insert chmod 755 cm_lookup chmod 755 rpc.cmsd if [ ! -f /etc/install/patch_100523-24 ] then echo "Patch-ID# 100523-24" > /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm_delete" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm_insert" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/cm_lookup" >> /etc/install/patch_100523-24 echo "/usr/openwin/bin/xview/rpc.cmsd" >> /etc/install/patch_100523-24 echo "" >> /etc/install/patch_100523-24 fi echo "Patch 100523-24 installed!" # Patching 100544-12 (mailtool) echo "Patching 100544-12 (mailtool) ... " cd $OPENWINHOME/bin mv mailtool mailtool.30fcs cp $PATCH_DIR/100544-12/sun4/mailtool . chmod 2755 mailtool chgrp news mailtool if [ ! -f /etc/install/patch_100544-12 ] then echo "Patch-ID# 100544-12" > /etc/install/patch_100544-12 echo "/usr/openwin/bin/mailtool" >> /etc/install/patch_100544-12 echo "" >> /etc/install/patch_100544-12 fi echo "Patch 100544-12 installed!" # Patching 100638-03 (perfmeter) echo "Patching 100638-03 (perfmeter) ... " cd $OPENWINHOME/bin mv perfmeter perfmeter.fcs cp $PATCH_DIR/100638-03/sun4/perfmeter . chmod 755 perfmeter if [ ! -f /etc/install/patch_100638-03 ] then echo "Patch-ID# 100638-03" > /etc/install/patch_100638-03 echo "/usr/openwin/bin/perfmeter" >> /etc/install/patch_100638-03 echo "" >> /etc/install/patch_100638-03 fi echo "Patch 100638-03 installed!" # Patching 100728-03 (xterm) echo "Patching 100728-03 (xterm) ... " cd $OPENWINHOME/bin mv xterm xterm.fcs cp $PATCH_DIR/100728-03/sun4/xterm . chmod 755 xterm if [ ! -f /etc/install/patch_100728-03 ] then echo "Patch-ID# 100728-03" > /etc/install/patch_100728-03 echo "/usr/openwin/bin/xterm" >> /etc/install/patch_100728-03 echo "" >> /etc/install/patch_100728-03 fi echo "Patch 100728-03 installed!" # Patching 105135-03 (date) echo "Patching 105135-03 (date) ... " mv /bin/date /bin/date.fcs cp $PATCH_DIR/105135-03/date /bin chmod 755 /bin/date chown root.staff /bin/date if [ ! -f /etc/install/patch_105135-03 ] then echo "Patch-ID# 105135-03" > /etc/install/patch_105135-03 echo "/bin/date" >> /etc/install/patch_105135-03 echo "" >> /etc/install/patch_105135-03 fi echo "Patch 105135-03 installed!" # Patching 105136-01 (bar) echo "Patching 105136-01 (bar) ... " mv /bin/bar /bin/bar.fcs cp $PATCH_DIR/105136-01/bar /bin chmod 755 /bin/bar chown root.staff /bin/bar if [ ! -f /etc/install/patch_105136-01 ] then echo "Patch-ID# 105136-01" > /etc/install/patch_105136-01 echo "/bin/bar" >> /etc/install/patch_105136-01 echo "" >> /etc/install/patch_105136-01 fi echo "Patch 105136-01 installed!" # Patching 105137-03 (the w command) echo "Patching 105137-03 (the w command) ... " mv /usr/kvm/w /usr/kvm/w.fcs cp $PATCH_DIR/105137-03/`arch -k`/w /usr/kvm/w chmod 2755 /usr/kvm/w chown root.kmem /usr/kvm/w if [ ! -f /etc/install/patch_105137-03 ] then echo "Patch-ID# 105137-03" > /etc/install/patch_105137-03 echo "/usr/kvm/w" >> /etc/install/patch_105137-03 echo "" >> /etc/install/patch_105137-03 fi echo "Patch 105137-03 installed!" # Patching 105153-03 (passwd) echo "Patching 105153-03 (passwd) ... " mv /usr/bin/passwd /usr/bin/passwd.fcs cp $PATCH_DIR/105153-03/passwd /usr/bin chmod 4755 /usr/bin/passwd chown root.staff /usr/bin/passwd if [ ! -f /etc/install/patch_105153-03 ] then echo "Patch-ID# 105153-03" > /etc/install/patch_105153-03 echo "/bin/passwd" >> /etc/install/patch_105153-03 echo "" >> /etc/install/patch_105153-03 fi echo "Patch 105153-03 installed!" # Patching 105138-01 (eeprom) echo "Patching 105138-01 (eeprom) ... " arch=`uname -m` if [ "$arch" = "sun4" ] then mv /usr/kvm/eeprom /usr/kvm/eeprom.fcs cp $PATCH_DIR/105138-01/sun4/eeprom /usr/kvm/eeprom chmod 755 /usr/kvm/eeprom chown root.kmem /usr/kvm/eeprom fi if [ ! -f /etc/install/patch_105138-01 ] then echo "Patch-ID# 105138-01" > /etc/install/patch_105138-01 echo "/usr/kvm/eeprom" >> /etc/install/patch_105138-01 echo "" >> /etc/install/patch_105138-01 fi echo "Patch 105138-01 installed!" # Patching 101437-02 (accounting) echo "Patching 101437-02 (accounting) ... " cd /usr/lib/acct mv acctcms acctcms.fcs mv acctprc1 acctprc1.fcs mv acctprc2 acctprc2.fcs mv acctcon1 acctcon1.fcs mv utmp2wtmp utmp2wtmp.fcs mv /usr/bin/acctcom /usr/bin/acctcom.fcs cp $PATCH_DIR/101437-02/acctcms . cp $PATCH_DIR/101437-02/acctprc1 . cp $PATCH_DIR/101437-02/acctprc2 . cp $PATCH_DIR/101437-02/acctcon1 . cp $PATCH_DIR/101437-02/utmp2wtmp . cp $PATCH_DIR/101437-02/acctcom /usr/bin chmod 755 /usr/lib/acct/* chmod 755 /usr/bin/acctcom chown root.staff /usr/lib/acct/* chown root.staff /usr/bin/acctcom if [ ! -f /etc/install/patch_101437-02 ] then echo "Patch-ID# 101437-02" > /etc/install/patch_101437-02 echo "/usr/lib/acct/acctcms" >> /etc/install/patch_101437-02 echo "/usr/lib/acct/acctprc1" >> /etc/install/patch_101437-02 echo "/usr/lib/acct/acctprc2" >> /etc/install/patch_101437-02 echo "/usr/lib/acct/acctcon1" >> /etc/install/patch_101437-02 echo "/usr/lib/acct/utmp2wtmp" >> /etc/install/patch_101437-02 echo "/usr/bin/acctcom" >> /etc/install/patch_101437-02 echo "" >> /etc/install/patch_101437-02 fi echo "Patch 101437-02 installed!" # Patching 105139-02 (at) echo "Patching 105139-02 (at) ... " mv /bin/at /bin/at.fcs mv /bin/atq /bin/atq.fcs cp $PATCH_DIR/105139-02/at /bin cp $PATCH_DIR/105139-02/atq /bin fi chmod 4755 /bin/at chmod 4755 /bin/atq chown root.staff /bin/at chown root.staff /bin/atq if [ ! -f /etc/install/patch_105139-02 ] then echo "Patch-ID# 105139-02" > /etc/install/patch_105139-02 echo "/bin/at" >> /etc/install/patch_105139-02 echo "/bin/atq" >> /etc/install/patch_105139-02 echo "" >> /etc/install/patch_105139-02 fi echo "Patch 105139-02 installed!" # Patching 105140-01 (sccs) echo "Patching 105140-01 (sccs) ... " cd /usr/sccs mv admin admin.fcs mv cdc cdc.fcs mv comb comb.fcs mv delta delta.fcs mv get get.fcs mv prs prs.fcs mv prt prt.fcs mv rmdel rmdel.fcs mv sact sact.fcs mv unget unget.fcs cd $PATCH_DIR/105140-01 cp admin cdc comb delta get prs prt rmdel sact unget /usr/sccs/ chmod 755 /usr/sccs/* chown root.staff /usr/sccs/* if [ ! -f /etc/install/patch_105140-01 ] then echo "Patch-ID# 105140-01" > /etc/install/patch_105140-01 echo "/usr/sccs/cdc" >> /etc/install/patch_105140-01 echo "/usr/sccs/get" >> /etc/install/patch_105140-01 echo "/usr/sccs/rmdel" >> /etc/install/patch_105140-01 echo "/usr/sccs/comb" >> /etc/install/patch_105140-01 echo "/usr/sccs/prs" >> /etc/install/patch_105140-01 echo "/usr/sccs/sact" >> /etc/install/patch_105140-01 echo "/usr/sccs/admin" >> /etc/install/patch_105140-01 echo "/usr/sccs/delta" >> /etc/install/patch_105140-01 echo "/usr/sccs/prt" >> /etc/install/patch_105140-01 echo "/usr/sccs/unget" >> /etc/install/patch_105140-01 echo "" >> /etc/install/patch_105140-01 fi echo "Patch 105140-01 installed!" # Patching 105141-01 (troff macros) echo "Patching 105141-01 (macros troff) ... " cd /usr/lib/tmac mv tmac.an tmac.an.fcs mv tmac.e tmac.e.fcs mv tmac.os tmac.os.fcs mv tmac.s tmac.s.fcs cp $PATCH_DIR/105141-01/tmac.an . cp $PATCH_DIR/105141-01/tmac.e . cp $PATCH_DIR/105141-01/tmac.os . cp $PATCH_DIR/105141-01/tmac.s . chmod 644 /usr/lib/tmac/* chown root.staff /usr/lib/tmac/* if [ ! -f /etc/install/patch_104141-01 ] then echo "Patch-ID# 104141-01" > /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.an" >> /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.os" >> /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.e" >> /etc/install/patch_104141-01 echo "/usr/lib/tmac/tmac.s" >> /etc/install/patch_104141-01 echo "" >> /etc/install/patch_104141-01 fi echo "Patch 104141-01 installed!" # Patching 105142-01 (touch) echo "Patching 105142-01 (touch) ... " mv /usr/5bin/touch /usr/5bin/touch.fcs cp $PATCH_DIR/105142-01/touch /usr/5bin chmod 755 /usr/5bin/touch chown root.staff /usr/5bin/touch if [ ! -f /etc/install/patch_105142-01 ] then echo "Patch-ID# 105142-01" > /etc/install/patch_105142-01 echo "/usr/5bin/touch" >> /etc/install/patch_105142-01 echo "" >> /etc/install/patch_105142-01 fi echo "Patch 105142-01 installed!" # Patching 106181-02 (date) echo "Patching 106181-02 (date) ... " mv /usr/5bin/date /usr/5bin/date.fcs cp $PATCH_DIR/106181-02/date /usr/5bin chmod 755 /usr/5bin/date chown root.staff /usr/5bin/date if [ ! -f /etc/install/patch_106181-02 ] then echo "Patch-ID# 106181-02" > /etc/install/patch_106181-02 echo "/usr/5bin/date" >> /etc/install/patch_106181-02 echo "" >> /etc/install/patch_106181-02 fi echo "Patch 106181-02 installed!" # Patching 107222-01 (easyinstall) echo "Patching 107222-01 (easyinstall) ... " mv /usr/etc/install/easyinstall /usr/etc/install/easyinstall.fcs chmod 400 easyinstall.fcs cp $PATCH_DIR/107222-01/easyinstall /usr/etc/install chmod 755 /usr/etc/install/easyinstall chown root.staff /usr/etc/install/easyinstall if [ ! -f /etc/install/patch_107222-01 ] then echo "Patch-ID# 107222-01" > /etc/install/patch_107222-01 echo "/usr/etc/install/easyinstall" >> /etc/install/patch_107222-01 echo "" >> /etc/install/patch_107222-01 fi echo "Patch 107222-01 installed!" # Patching 105465-02 (sendmail) echo "Patching 105465-02 (sendmail) ... " mkdir /etc/mail mv /usr/lib/sendmail /usr/lib/sendmail.v5 mv /usr/lib/sendmail.mx /usr/lib/sendmail.mx.v5 mv /usr/ucb/vacation /usr/ucb/vacation.fcs mv /usr/etc/mconnect /usr/etc/mconnect.v5 mv /usr/etc/mailstats /usr/etc/mailstats.v5 mv /usr/man/man8/sendmail.8 /usr/man/man8/sendmail.8.v5 mv /etc/sendmail.cf /etc/mail/sendmail.cf.v5 mv /usr/lib/sendmail.subsidiary.cf /etc/mail/subsidiary.cf.v5 mv /usr/lib/sendmail.mail.cf /etc/mail/main.cf.v5 cd $PATCH_DIR/105465-02 cp sendmail sendmail.mx /usr/lib cp vacation /usr/ucb cp mconnect mailstats /usr/etc cp sendmail.8 /usr/man/man8 cp sendmail.cf /etc/mail cp main.cf /etc/mail cp subsidiary.cf /etc/mail cp sendmail.hf /etc/mail cp aliases /etc/mail chmod 4551 /usr/lib/sendmail chmod 4551 /usr/lib/sendmail.mx chown root.staff /usr/lib/sendmail chown root.staff /usr/lib/sendmail.mx if [ ! -f /etc/install/patch_105465-02 ] then echo "Patch-ID# 105465-02" > /etc/install/patch_105465-02 echo "/usr/lib/sendmail" >> /etc/install/patch_105465-02 echo "/usr/lib/sendmail.mx" >> /etc/install/patch_105465-02 echo "/usr/ucb/vacation" >> /etc/install/patch_105465-02 echo "/usr/etc/mconnect" >> /etc/install/patch_105465-02 echo "/usr/etc/mailstats" >> /etc/install/patch_105465-02 echo "/usr/man/man8/sendmail.8" >> /etc/install/patch_105465-02 echo "/usr/lib/sendmail.main.cf" >> /etc/install/patch_105465-02 echo "/etc/sendmail.cf" >> /etc/install/patch_105465-02 echo "/etc/mail/sendmail.hf" >> /etc/install/patch_105465-02 echo "/usr/lib/sendmail.subsidiary.cf" >> /etc/install/patch_105465-02 echo "" >> /etc/install/patch_105465-02 fi echo "Patch 105465-02 installed!" # Patching 106859-01 (sundiag) echo "Patching 106859-01 (sundiag) ..." mv /usr/diag/sundiag /usr/diag/sundiag.fcs cp -p $PATCH_DIR/106859-01/sundiag/* /usr/diag/sundiag if [ ! -f /etc/install/patch_106859-01 ] then echo "/usr/diag/sundiag/*" >> /etc/install/patch_106859-01 echo "" >> /etc/install/patch_106859-01 fi echo "Patch 106859-01 installed!" # Patching 101558-12 (international libc) echo "Patching 101558-12 (libc) ... " mv /usr/lib/libc.a /usr/lib/libc.a.fcs mv /usr/lib/lib_p.a /usr/lib/libc_p.a.fcs mv /usr/5lib/libc.a /usr/lib/libc.a.fcs mv /usr/5lib/libc_p.a /usr/5lib/libc_p.a.fcs mv /usr/lib/libbsdmalloc.a /usr/lib/libbsdmalloc.a.fcs # preserving original /usr/lib/shlib.etc # mv /usr/lib/shlib.etc /usr/lib/shlib.etc.fcs mkdir /usr/lib/shlib.etc chmod 2755 /usr/lib/shlib.etc # preserving the original /usr/lib/debug # mv /usr/lib/debug /usr/lib/debug.fcs mkdir /usr/lib/debug chmod 2755 /usr/lib/debug mv libc.so.1.9 libc.so.1.9.fcs mv libc.sa19 libc.sa.1.9.fcs cp -r -p $PATCH_DIR/101558-12/lib/* /usr/lib cp -r -p $PATCH_DIR/101558-12/5lib/* /usr/5lib echo "Test the date: " echo `date` echo "Is the date information correct(y/n)?" read testdate if [ "$testdate" = "n" ] then echo " Putting old libraries back in place ..." mv libc.so.1.9 libc.so19 mv libc.so.1.9.fcs libc.so.1.9 mv libc.sa.1.9 libc.sa19 mv libc.sa.1.9.fcs libc.sa.1.9 fi cd /usr/5lib mv libc.so.2.9 libc.so.2.9.fcs mv libc.so29 libc.so.2.9 mv libc.sa.2.9 libc.sa.2.9.fcs mv libc.sa29 libc.sa.2.9 # Update the libraries # ranlib -t /usr/lib/libc*a* ranlib -t /usr/5lib/libc*a* ranlib -t /usr/lib/libbsdmalloc.a if [ ! -f /etc/install/patch_101558-12 ] then echo "Patch-ID# 101558-12" > /etc/install/patch_101558-12 echo "/usr/lib/libc.a" >> /etc/install/patch_101558-12 echo "/usr/lib/libc_p.a" >> /etc/install/patch_101558-12 echo "/usr/lib/libc.so.1.9" >> /etc/install/patch_101558-12 echo "/usr/lib/libc.sa.1.9" >> /etc/install/patch_101558-12 echo "/usr/lib/libbsdmalloc.a" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc.a" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc_p.a" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc.so.2.9" >> /etc/install/patch_101558-12 echo "/usr/5lib/libc.sa.2.9" >> /etc/install/patch_101558-12 echo "" >> /etc/install/patch_101558-12 fi echo "Patch 101558-12 installed !"