diff options
author | Erik Troan <ewt@redhat.com> | 1998-10-15 15:58:14 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1998-10-15 15:58:14 +0000 |
commit | aacb883ee3bfbc8672508f97de35f28e95cdbef2 (patch) | |
tree | 69e3cb5c96531090cc365a1bb7a8766ba960646f /rc.d | |
parent | eb73c3e30084e533245bf2154615e0de8743b3e7 (diff) | |
download | initscripts-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 ;-)
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/halt | 10 |
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." |