Precaution!
    Doug Barton 
    DougB at FreeBSD.org
       
    Mon May  5 19:16:27 PDT 2003
    
    
  
On Tue, 6 May 2003, leafy wrote:
> Is there a way to mimick rc.early in rcNG so that I can force a 'fsck -y'
> remotely?
The attached script will do this for you, but if it wedges the box, you'll
be totally hosed if you don't have remote access.
HTH,
Doug
-- 
    This .signature sanitized for your protection
-------------- next part --------------
#!/bin/sh
# PROVIDE: fsck-y
# REQUIRE: localswap
# BEFORE:  fsck
# KEYWORD: FreeBSD
. /etc/rc.subr
name="fsck-y"
start_cmd='do_fsck'
stop_cmd=':'
do_fsck()
{
	fsck -y
}
load_rc_config $name
run_rc_command "$1"
    
    
More information about the freebsd-current
mailing list