Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/fsck
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: fsck | # PROVIDE: fsck | ||||
# REQUIRE: swap | # REQUIRE: swap | ||||
# KEYWORD: nojail | # KEYWORD: nojail | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="fsck" | name="fsck" | ||||
desc="Run file system checks" | |||||
start_cmd="fsck_start" | start_cmd="fsck_start" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
fsck_start() | fsck_start() | ||||
{ | { | ||||
if [ "$autoboot" = no ]; then | if [ "$autoboot" = no ]; then | ||||
echo "Fast boot: skipping disk checks." | echo "Fast boot: skipping disk checks." | ||||
elif [ ! -r /etc/fstab ]; then | elif [ ! -r /etc/fstab ]; then | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |