summaryrefslogtreecommitdiff
path: root/local/bin/swap.stop
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin/swap.stop')
-rwxr-xr-xlocal/bin/swap.stop5
1 files changed, 5 insertions, 0 deletions
diff --git a/local/bin/swap.stop b/local/bin/swap.stop
new file mode 100755
index 0000000..b5294b1
--- /dev/null
+++ b/local/bin/swap.stop
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+# Close encrypted swap manually
+
+swapoff /dev/dm-1
+cryptsetup close cryptswap