Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/bgfsck
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: bgfsck | # PROVIDE: bgfsck | ||||
# REQUIRE: cron devfs syslogd | # REQUIRE: cron devfs syslogd | ||||
# KEYWORD: nojail | # KEYWORD: nojail | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="background_fsck" | name="background_fsck" | ||||
desc="Run fsck in background" | |||||
rcvar="background_fsck" | rcvar="background_fsck" | ||||
start_cmd="bgfsck_start" | start_cmd="bgfsck_start" | ||||
start_precmd="bgfsck_start_precmd" | start_precmd="bgfsck_start_precmd" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
bgfsck_start_precmd() | bgfsck_start_precmd() | ||||
{ | { | ||||
if [ $($ID -u) != 0 ]; then | if [ $($ID -u) != 0 ]; then | ||||
Show All 29 Lines |