aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-10-15 15:58:14 +0000
committerErik Troan <ewt@redhat.com>1998-10-15 15:58:14 +0000
commitaacb883ee3bfbc8672508f97de35f28e95cdbef2 (patch)
tree69e3cb5c96531090cc365a1bb7a8766ba960646f
parenteb73c3e30084e533245bf2154615e0de8743b3e7 (diff)
downloadinitscripts-aacb883ee3bfbc8672508f97de35f28e95cdbef2.tar
initscripts-aacb883ee3bfbc8672508f97de35f28e95cdbef2.tar.gz
initscripts-aacb883ee3bfbc8672508f97de35f28e95cdbef2.tar.bz2
initscripts-aacb883ee3bfbc8672508f97de35f28e95cdbef2.tar.xz
initscripts-aacb883ee3bfbc8672508f97de35f28e95cdbef2.zip
raidstop -r doesn't work for 5.2 ;-)
-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."