aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index c16b15c6..0aca9dfd 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -52,6 +52,11 @@ 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."