From aacb883ee3bfbc8672508f97de35f28e95cdbef2 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Thu, 15 Oct 1998 15:58:14 +0000 Subject: raidstop -r doesn't work for 5.2 ;-) --- rc.d/init.d/halt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rc.d') 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." -- cgit v1.2.1