Automating dupatch

From: Paul Szabo <psz_at_maths.usyd.edu.au>
Date: Wed, 20 May 1998 13:21:54 +1000 (EST)

I found it annoying that dupatch wants to run in single-user mode, making
it hard to apply the latest patches to each of my running machines.

Using the following scripts the process can be automated. Retrieve the
patch (tar) archive and stash it away somewhere accessible (e.g.
/usr/local/patch.tar, the scripts below try several names). Then use the
scripts as provided below:

  mk_sjob ## Add some lines to /etc/inittab
  auto_patch ## Do the hard work and reboot

To clean up afterwards, use

  rm_junk

The scripts below were tar'ed, gzip'ed and uuencoded to ensure correct
transmission. Please read through them, noting comments...

Paul Szabo - System Manager // School of Mathematics and Statistics
psz_at_maths.usyd.edu.au // University of Sydney, NSW 2006, Australia

---
begin 600 scripts.tar.gz
M'XL(`)-+8C4"`^U;>W?;QH[OO^6G0&6=I>5CO?Q(3NPZ63=V$M\ZMH_MG+9G
MN]M2Y,AB+9&Z'#*.FN:[[P^8X4N6'-_=]N[)7K&-3<Y_at_,!_at_`_at_P$PL)>E\2]3
M+_5'7_UE3Z_7>]KK$7[WG^[VJ[_EV>X]?4J])[O;O9V=G=UMO/>W=YX^0?]7
M_X0GTZF7_at_)2I_OU!.&\"P.'PH47V>EOTU9.=)UN[^/V%/&O?=`=AU+W5(VH[
M3CJ;*JU2:F?TYLQY<W;0:*YW-0.,8IU&WD116[<:SAHI?Q13XTW>NIY-IRKQ
M/:U:>]1\<]9PG'!(_T'?4'M(73W373^.AEWTT'_N4SI2D4,T3<(HI<:K<*SF
M8()8:8KBE-2'4*>-$O:'<#RFF_"]HC2)LP$&WH7I"/`\-+SI=#IT_"%,P^B&
M!V%T2GUG&!;$!&:BA70<A4G9^Z=3X#_at_7UY<_';AH[&8ZZ::3:5?V70?ZES>.
M8]\;=\?AH)O$<7J_GP=I$#![%'39OZ3K7G/9X(+<P\L#9Q_at_G!+HIC*C)"]C'
M2_at_$M_(1HF]Q7<I)(1G&K?`T2Y=WB#>L/XD_at_9,;1_IT:3X1J5D4:?+GA^\A)_
MQ`QF]_at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