aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-07-16 00:27:57 +0000
committerJudd Vinet <judd@archlinux.org>2004-07-16 00:27:57 +0000
commit3280eeff177ecf79c32213303c9eb320b579d040 (patch)
tree919982ceadb85c91937adb61674915261be755dd /rc.shutdown
parent2c20f4d5637da88e983b65db9c97373aa79d8a37 (diff)
downloadinitscripts-3280eeff177ecf79c32213303c9eb320b579d040.tar.xz
updated version header to 0.7, added support for udev and static /dev trees
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown12
1 files changed, 7 insertions, 5 deletions
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