summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-05-11 08:57:47 +0000
committerRoy Marples <roy@marples.name>2007-05-11 08:57:47 +0000
commit7cdd8d4a0e2a5ef44df37e7879cb726aac45826d (patch)
tree2fd7e40490143cef94e23e83f5066eead1d30df3 /init.d
parent0888f74f473f3e4b83de5f04b0b4cbb4b8dbc7f9 (diff)
downloadopenrc-7cdd8d4a0e2a5ef44df37e7879cb726aac45826d.tar.gz
openrc-7cdd8d4a0e2a5ef44df37e7879cb726aac45826d.tar.bz2
openrc-7cdd8d4a0e2a5ef44df37e7879cb726aac45826d.tar.xz
Only mount ro on Linux
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/halt.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh
index eabc898..701a56c 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