[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] quick package installer
- Subject: RE: [cobalt-users] quick package installer
- From: "Greg O'Lone" <greg@xxxxxxxxxxxxxxxx>
- Date: Wed Sep 25 20:20:38 2002
- Organization: Stretched Out Software, Inc.
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Oops, lets try that again...
Excuse my ignorance, but doesn't this look too easy:
------------------------------------------------------------------------
--------
#!/bin/sh
# set -v
# RaQ Package Installer
#
# Installs all packages in the current folder (in alphabetical order)
and then reboots the machine.
#
# Suggestion: Rename the package files with ##_packagename.pkg in
chronological order to ensure
# install order
package_list=`ls *.pkg`
for package in $package_list ; do
echo $package
/usr/local/sbin/cobalt_upgrade $package
done
/sbin/reboot
------------------------------------------------------------------
Just tried this on my RaQ 4, everything seems to have worked correctly,
I assume this is how Sun does it on the OS Restore CD's. Anybody see any
reason this shouldn't work? I named all of the upgrade .pkg files with
numbered prefixes (01, 02, 03, etc.) and the script grabbed them in
order, but I am still a bit weary about it.
By the way, it took about a third of the time as the machine didn't have
to reboot each time, and because it uses a Cobalt script, they even show
up in the GUI!
Anybody see anything gone awry here?
Greg
_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users