[arch-projects] [initscripts][PATCH 4/4] avoid check for /sys/block

Dave Reisner dreisner at archlinux.org
Fri Jun 8 10:58:49 EDT 2012


This is a deprecated path in sysfs, and the check is illogical.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 rc.shutdown |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.7.10.4



More information about the arch-projects mailing list