diff options
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/rc.shutdown b/rc.shutdown index 538eb96..630f09b 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -64,17 +64,14 @@ stat_busy "Unmounting Filesystems" /bin/umount -a stat_done -if [ -f /etc/lvmtab ]; then - if [ -x /sbin/lvm ]; then - stat_busy "Deactivating LVM2 groups" - /sbin/lvm vgchange --ignorelockingfailure -a n - stat_done - elif [ -x /sbin/vgchange ]; then - stat_busy "Deactivating LVM1 groups" - /sbin/vgchange -a n - stat_done - fi - umount /proc +if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then + stat_busy "Deactivating LVM1 groups" + /sbin/vgchange -a n + stat_done +elif [ -d /etc/lvm -a -x /sbin/lvm ]; then + stat_busy "Deactivating LVM2 groups" + /sbin/lvm vgchange --ignorelockingfailure -a n + stat_done fi stat_busy "Remounting Root Filesystem Read-only" |