summaryrefslogtreecommitdiff
path: root/veracrypt/debian/scripts/30veracrypt
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-02-02 13:20:04 +0000
committerB Stack <bgstack15@gmail.com>2019-02-02 13:20:04 +0000
commit6fd541d7510f66d91a38a83b1a3ff01ae6fbfe3f (patch)
tree85e7694e00578f4353b3f7da419d4749437e0532 /veracrypt/debian/scripts/30veracrypt
parentMerge branch 'freefilesync-dpkg' into 'master' (diff)
parentadd veracrypt dpkg first draft (diff)
downloadstackrpms-6fd541d7510f66d91a38a83b1a3ff01ae6fbfe3f.tar.gz
stackrpms-6fd541d7510f66d91a38a83b1a3ff01ae6fbfe3f.tar.bz2
stackrpms-6fd541d7510f66d91a38a83b1a3ff01ae6fbfe3f.zip
Merge branch 'veracrypt-dpkg' into 'master'
veracrypt dpkg for devuan See merge request bgstack15/stackrpms!34
Diffstat (limited to 'veracrypt/debian/scripts/30veracrypt')
-rwxr-xr-xveracrypt/debian/scripts/30veracrypt19
1 files changed, 19 insertions, 0 deletions
diff --git a/veracrypt/debian/scripts/30veracrypt b/veracrypt/debian/scripts/30veracrypt
new file mode 100755
index 0000000..33085e4
--- /dev/null
+++ b/veracrypt/debian/scripts/30veracrypt
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+test -d /run/systemd/system && exit 0
+
+VERACRYPT_SUSPEND_UNMOUNT=yes
+
+. /etc/default/veracrypt
+
+case "${VERACRYPT_SUSPEND_UNMOUNT}" in
+[Nn]*)
+ exit 0
+ ;;
+esac
+
+case "$1" in
+ suspend|hibernate)
+ /usr/bin/veracrypt --dismount
+ ;;
+esac
bgstack15