From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079036515821.tru64-unix-managers.marc@archive.invalid> From: Matt Phelps Date: Fri, 19 Feb 1999 15:54:52 +0000 To: tru64-unix-managers Subject: How to apply patches at boot time X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079036515821 I would like to have patches run automatically at reboot. I have the patch directory on an exported disk all set to go with a data file, it's an easy matter to write a script to do the patch installation "hands-off" in single user mode; e.g. # # apply patches # /sbin/bcheckrc # mount disks /sbin/update # start update /sbin/swapon # enable swap /usr/sbin/rcinet start # start network services cd /(automount directory)/patch_kit # go to patch area ./dupatch -install -data data.patch # install patches /usr/sbin/doconfig -c HOSTNAME # rebuild kernel cp /vmunix /vmunix.save # save old kernel mv /sys/HOSTNAME/vmunix /vmunix # install new kernel rm (this script pathname) # remove this script sync;sync;reboot # reboot My question is; where do I put this script? Would /sbin/rc0.d/S99install_patches work? -- Matt Phelps System Administrator Harvard - Smithsonian Center for Astrophysics mphelps@cfa.harvard.edu http://cfa-www.harvard.edu