From 3280eeff177ecf79c32213303c9eb320b579d040 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 16 Jul 2004 00:27:57 +0000 Subject: updated version header to 0.7, added support for udev and static /dev trees --- rc.shutdown | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'rc.shutdown') diff --git a/rc.shutdown b/rc.shutdown index e536aae..8e5a0e9 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -70,11 +70,13 @@ if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then /sbin/vgchange -a n stat_done elif [ -d /etc/lvm -a -x /sbin/lvm ]; then - /bin/mount -n -t sysfs none /sys - stat_busy "Deactivating LVM2 groups" - /sbin/lvm vgchange --ignorelockingfailure -a n - stat_done - umount /sys + /bin/mount -n -t sysfs none /sys 2>/dev/null + if [ -d /sys/block ]; then + stat_busy "Deactivating LVM2 groups" + /sbin/lvm vgchange --ignorelockingfailure -a n + stat_done + umount /sys + fi fi fi -- cgit v1.2.3