From a6c9a6926840a7e37fe00503305d9d47086963a7 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 8 Jun 2012 10:23:50 -0400 Subject: avoid check for /sys/block This is a deprecated path in sysfs, and the check is illogical. Signed-off-by: Dave Reisner --- rc.shutdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.shutdown') diff --git a/rc.shutdown b/rc.shutdown index 78f56c4..c708b92 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -71,7 +71,7 @@ if [[ -f /etc/crypttab ]] && type -p cryptsetup >/dev/null; then stat_done fi -[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]] && +[[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) ]] && status "Deactivating LVM2 groups" vgchange --sysinit -a n &>/dev/null run_hook shutdown_poweroff -- cgit v1.2.3