Re: automatic reboots

Sean Utt (sean@northwest.com)
Fri, 27 Dec 1996 09:53:34 -0800 (PST)


add a -y to the line in your /etc/rc.d/rc.S

----------------
# Check the integrity of all filesystems
if [ ! $READWRITE = yes ]; then
/sbin/fsck -A -a -y <-- add this -y here.
# If there was a failure, drop into single-user mode.
if [ $? -gt 1 ] ; then
etc.
etc.
etc.

sean

On Fri, 27 Dec 1996, Roel Lascano wrote:

>
> This may not be the place to ask but here it goes:
> Is there a way to force the fsck to continue without interaction after a
> re-boot? Here's the situation: I've got a machine set up as a server
> it's headless and keyboardless (and to make matters worst, it's not too
> easy to get to.) Occasionally it goes down hard (generator runs out of
> gas... a UPS could solve the problem, but weight is an issue too...)
> When it comes up (or at least tries to come up) it comes up with a fs
> problem that drops the machine into single user mode (thus no networking
> and no telnetting in to resolve it.)
>
> TIA,
> Roel
>