From: Matt Phelps <mphelps () cfa ! harvard ! edu>
To: tru64-unix-managers
Subject: How to apply patches at boot time
Date: Fri, 19 Feb 1999 15:54:52 +0000 [thread overview]
Message-ID: <96079036515821.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1999-02-19 15:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox