diff options
author | Juan RP <xtraeme@voidlinux.eu> | 2015-06-02 08:42:40 +0200 |
---|---|---|
committer | Juan RP <xtraeme@voidlinux.eu> | 2015-06-02 08:42:40 +0200 |
commit | 341f0470cfcae91e180e0c7ddf0101ca2c92253c (patch) | |
tree | 83c4ad79b879336f53a354244d905d8f0452f7bc /functions | |
parent | 4bb1c55f3390bbcb0e11b4ab44299ae06d89b888 (diff) | |
download | runit-void-341f0470cfcae91e180e0c7ddf0101ca2c92253c.tar.gz runit-void-341f0470cfcae91e180e0c7ddf0101ca2c92253c.tar.xz runit-void-341f0470cfcae91e180e0c7ddf0101ca2c92253c.zip |
Update paths for the usr/sbin -> usr/bin move.
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
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" |