about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCameron Nemo <cam@nohom.org>2022-12-24 20:33:23 -0800
committerLeah Neukirchen <leah@vuxu.org>2022-12-29 17:37:36 +0100
commitfa197f0d9e18070b6b28cfdd38f22fbc8cf2f69d (patch)
tree36fb962a6dc39f134531bcd7526c97ab82f40295
parentccdfcb744d7f8858baff2f1aab2fdb352cc4d33f (diff)
downloadrunit-void-fa197f0d9e18070b6b28cfdd38f22fbc8cf2f69d.tar.gz
runit-void-fa197f0d9e18070b6b28cfdd38f22fbc8cf2f69d.tar.xz
runit-void-fa197f0d9e18070b6b28cfdd38f22fbc8cf2f69d.zip
functions: fix indentation
-rw-r--r--functions34
1 files changed, 17 insertions, 17 deletions
diff --git a/functions b/functions
index 037cd08..daed329 100644
--- a/functions
+++ b/functions
@@ -28,27 +28,27 @@ emergency_shell() {
 }
 
 detect_virt() {
-   # Detect LXC (and other) containers
-   [ -z "${container+x}" ] || export VIRTUALIZATION=1
+    # Detect LXC (and other) containers
+    [ -z "${container+x}" ] || export VIRTUALIZATION=1
 }
 
 deactivate_vgs() {
-   _group=${1:-All}
-   if [ -x /sbin/vgchange -o -x /bin/vgchange ]; then
-       vgs=$(vgs|wc -l)
-       if [ $vgs -gt 0 ]; then
-           msg "Deactivating $_group LVM Volume Groups..."
-           vgchange -an
-       fi
-   fi
+    _group=${1:-All}
+    if [ -x /sbin/vgchange -o -x /bin/vgchange ]; then
+        vgs=$(vgs|wc -l)
+        if [ $vgs -gt 0 ]; then
+            msg "Deactivating $_group LVM Volume Groups..."
+            vgchange -an
+        fi
+    fi
 }
 
 deactivate_crypt() {
-   if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then
-       msg "Deactivating Crypt Volumes"
-       for v in $(dmsetup ls --target crypt --exec "dmsetup info -c --noheadings -o open,name"); do
-           [ ${v%%:*} = "0" ] && cryptsetup close ${v##*:}
-       done
-       deactivate_vgs "Crypt"
-   fi
+    if [ -x /sbin/dmsetup -o -x /bin/dmsetup ]; then
+        msg "Deactivating Crypt Volumes"
+        for v in $(dmsetup ls --target crypt --exec "dmsetup info -c --noheadings -o open,name"); do
+            [ ${v%%:*} = "0" ] && cryptsetup close ${v##*:}
+        done
+        deactivate_vgs "Crypt"
+    fi
 }