diff options
author | Roy Marples <roy@marples.name> | 2007-07-25 20:58:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-07-25 20:58:23 +0000 |
commit | 075e80b358b3ea10c9a66caf6dd38c4ddc89f82c (patch) | |
tree | 21ffbe2ad35c5da99b05d5a961fe0d391af29310 /init.d/checkroot | |
parent | af2d9995d78c0ac019f047e235eba71e421b83cf (diff) |
Merge some of reb's OpenBSD fixes in
Diffstat (limited to 'init.d/checkroot')
-rwxr-xr-x | init.d/checkroot | 7 |
1 files changed, 5 insertions, 2 deletions
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 |