[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Consolidated .pkg Update Available?



----- Original Message ----- 
From: "Schachter, Abe" <ans@xxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, August 18, 2003 6:07 PM
Subject: [cobalt-users] Consolidated .pkg Update Available?


> I have an unused Cobalt RaQ 4i that is sitting unopened in its original
> packaging for which a need has just been identified.  Now I'm faced with
the
> task of applying two years worth of patches which is bound to be a
laborious
> and time consuming task.  Does anybody know if a .pkg exists that contains
> all of the updates and patches that have been released to date and which
can
> be applied to bring the box up to current specifications or is this
wishful
> thinking?
>
> Abe Schachter
>


The following script will do the whole job for you :

(Just watch out for where this email splits the lines.
2nd line starts COBALTPAGE
3rd line starts URLS
4th line starts cd /home/packages)

Bassi



#!/bin/sh
COBALTPAGE="http://sunsolve.sun.com/pub-cgi/show.pl?target=cobalt/raq4.eng&n
av=patchpage"
URLS=`wget -O - $COBALTPAGE | tac | grep "http://ftp.cobalt.sun.com"; | sed
's/.*\<a href="//' | sed 's/".*//'`
cd /home/packages
  for URL in $URLS; do
  wget $URL
done
  for URL in $URLS; do
  FILE=`echo $URL | sed 's/.*\///'`
  /usr/local/sbin/cobalt_upgrade $FILE
done