diff options
author | B Stack <bgstack15@gmail.com> | 2019-01-30 15:40:06 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-01-30 15:40:06 -0500 |
commit | e9120a776ff758709db504702eb3a44940bdd26e (patch) | |
tree | 7eaa53b9b4c888038696252b49d535f1e1deec6b /veracrypt/debian/scripts | |
parent | add palemoon dpkg for devuan (diff) | |
download | stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.tar.gz stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.tar.bz2 stackrpms-e9120a776ff758709db504702eb3a44940bdd26e.zip |
add veracrypt dpkg first draft
Diffstat (limited to 'veracrypt/debian/scripts')
-rwxr-xr-x | veracrypt/debian/scripts/30veracrypt | 19 | ||||
-rwxr-xr-x | veracrypt/debian/scripts/veracrypt | 17 |
2 files changed, 36 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 diff --git a/veracrypt/debian/scripts/veracrypt b/veracrypt/debian/scripts/veracrypt new file mode 100755 index 0000000..b9ec9a7 --- /dev/null +++ b/veracrypt/debian/scripts/veracrypt @@ -0,0 +1,17 @@ +#!/bin/sh + +VERACRYPT_SUSPEND_UNMOUNT=yes + +. /etc/default/veracrypt + +case "${VERACRYPT_SUSPEND_UNMOUNT}" in +[Nn]*) + exit 0 + ;; +esac + +case "$1" in + pre) + /usr/bin/veracrypt --dismount + ;; +esac |