From 7cdd8d4a0e2a5ef44df37e7879cb726aac45826d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 May 2007 08:57:47 +0000 Subject: [PATCH] Only mount ro on Linux --- init.d/halt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.d/halt.sh b/init.d/halt.sh index eabc8980..701a56c6 100755 --- a/init.d/halt.sh +++ b/init.d/halt.sh @@ -53,7 +53,8 @@ fi unmounted=0 # Remount the remaining filesystems read-only -if [ "${RC_UNAME}" != "FreeBSD" ] ; then +# Most BSD's don't need this as the kernel handles it nicely +if [ "${RC_UNAME}" = "Linux" ] ; then ebegin "Remounting remaining filesystems read-only" # We need the do_unmount function . "${RC_LIBDIR}"/sh/rc-mount.sh