From 341f0470cfcae91e180e0c7ddf0101ca2c92253c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 2 Jun 2015 08:42:40 +0200 Subject: Update paths for the usr/sbin -> usr/bin move. --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 971d288..d1cd318 100644 --- a/functions +++ b/functions @@ -37,7 +37,7 @@ detect_virt() { deactivate_vgs() { _group=${1:-All} - if [ -x /sbin/vgchange ]; then + if [ -x /sbin/vgchange -o -x /bin/vgchange ]; then vgs=$(vgs|wc -l) if [ $vgs -gt 0 ]; then msg "Deactivating $_group LVM Volume Groups..." @@ -47,7 +47,7 @@ deactivate_vgs() { } deactivate_crypt() { - if [ -x /sbin/dmsetup ]; then + if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then msg "Deactivating Crypt Volumes" dmsetup ls --target crypt --exec 'cryptsetup close' deactivate_vgs "Crypt" -- cgit 1.4.1