Date: Mon, 5 May 2003 19:16:21 -0700 (PDT) From: Doug Barton <DougB@FreeBSD.org> To: leafy <leafy@leafy.idv.tw> Cc: freebsd-current@freebsd.org Subject: Re: Precaution! Message-ID: <20030505191448.Q666@znfgre.qbhto.arg> In-Reply-To: <20030506012317.GA610@chihiro.leafy.idv.tw> References: <20030505.112625.16415226.imp@bsdimp.com> <20030506012317.GA610@chihiro.leafy.idv.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
#!/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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030505191448.Q666>
