Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: magi%uwocsd.uwo.ca@cornellc.cit.cornell.edu (David Wiseman)
Newsgroups: comp.sys.sun
Subject: Re: Shutting down a Sun System with a Shell Script
Message-ID: <8811231855.AA05234@uwocsd.uwo.ca>
Date: 4 Dec 88 04:05:11 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 21
Approved: Sun-Spots@rice.edu
Original-Date: Wed, 23 Nov 88 13:55:02 EST
X-Sun-Spots-Digest: Volume 7, Issue 37, message 6 of 12

In X-Sun-Spots-Digest: Volume 7, Issue 21, message 7 of 12
        From: STELLABO@CSHLAB.BITNET
Fred J. Stellabotte asks questions about taking suns down to single user mode
to run backup.

I've been playing with this for a little while and I may have a way to do
it.  First a note of caution: I haven't tried this yet but I cannot see
any reason why it won't work.

Build a procedure that replaces /etc/rc.boot with another shell script
(being careful not to lose rc.boot) and then forces a reboot. The
replacement rc.boot would do whatever you wanted then replace itself with
the original rc.boot and force a reboot again.

Has anyone out there tried this yet? Can anyone tell me why this is a
really stupid idea that should have been left in a wastebasket?

magi    David Wiseman, Network Manager
        Department of Computer Science
        The University of Western Ontario
        London Ontario Canada N6A 5B7