aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-10-15 15:46:15 +0000
committerErik Troan <ewt@redhat.com>1998-10-15 15:46:15 +0000
commitc66e28a7f8c02bb4fd3b095c0d11e9a45a040e57 (patch)
tree57dd902a2f4c6a27f479406ad5c3d87754e78a26 /rc.d/init.d/halt
parent9823cd1cdc1c5e823fdfae3418234a2a10a786d2 (diff)
downloadinitscripts-c66e28a7f8c02bb4fd3b095c0d11e9a45a040e57.tar
initscripts-c66e28a7f8c02bb4fd3b095c0d11e9a45a040e57.tar.gz
initscripts-c66e28a7f8c02bb4fd3b095c0d11e9a45a040e57.tar.bz2
initscripts-c66e28a7f8c02bb4fd3b095c0d11e9a45a040e57.tar.xz
initscripts-c66e28a7f8c02bb4fd3b095c0d11e9a45a040e57.zip
added raidstop stuff
Diffstat (limited to 'rc.d/init.d/halt')
-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."