From 075e80b358b3ea10c9a66caf6dd38c4ddc89f82c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 25 Jul 2007 20:58:23 +0000 Subject: Merge some of reb's OpenBSD fixes in --- init.d/checkroot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'init.d/checkroot') diff --git a/init.d/checkroot b/init.d/checkroot index a35d4586..72a59388 100755 --- a/init.d/checkroot +++ b/init.d/checkroot @@ -32,8 +32,11 @@ do_mtab() { } do_fsck() { - local retval=0 opts="-F" - [ "${RC_UNAME}" = "Linux" ] && opts="-T -C0" + local retval=0 opts= + case "${RC_UNAME}" in + FreeBSD) opts="-F";; + Linux) opts="-T -C0";; + esac # Don't bother doing a fsck on these if [ -n "${CDBOOT}" ] || is_net_fs / || is_union_fs / ; then -- cgit v1.2.3