aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-xrc.d/init.d/halt10
1 files changed, 5 insertions, 5 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 0aca9dfd..42022241 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -47,16 +47,16 @@ echo "Unmounting file systems"
umount -a
mount -n -o remount,ro /
+# turn off raid
+if [ -x /sbin/raidstop && -f /etc/raidtab ]; then
+ /sbin/raidstop -a
+fi
+
echo "Remounting remaining filesystems (if any) readonly"
mount | awk '/ext2/ { print $3 }' | while read line; do
mount -n -o ro,remount $line
done
-# turn off raid
-if [ -x /sbin/raidstop && -f /etc/raidtab ]; then
- /sbin/raidstop -a -r
-fi
-
# Now halt or reboot.
echo "$message"
[ -f /fastboot ] && echo "On the next boot fsck will be skipped."