aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-06-08 10:23:50 -0400
committerDave Reisner <dreisner@archlinux.org>2012-06-08 10:24:47 -0400
commita6c9a6926840a7e37fe00503305d9d47086963a7 (patch)
tree1b75c7acf7acf1c2af9ced377c35293bb65d3c28 /rc.shutdown
parentb978858fec0a84194e9bd0ca83d7729332c7ad23 (diff)
downloadinitscripts-a6c9a6926840a7e37fe00503305d9d47086963a7.tar.xz
avoid check for /sys/block
This is a deprecated path in sysfs, and the check is illogical. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown2
1 files changed, 1 insertions, 1 deletions
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