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_at_cfa.harvard.edu
http://cfa-www.harvard.edu
Received on Fri Feb 19 1999 - 15:57:48 NZDT