tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* How to apply patches at boot time
@ 1999-02-19 15:54 Matt Phelps
  0 siblings, 0 replies; only message in thread
From: Matt Phelps @ 1999-02-19 15:54 UTC (permalink / raw)
  To: tru64-unix-managers


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-19 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-19 15:54 How to apply patches at boot time Matt Phelps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox