diff options
Diffstat (limited to '')
-rw-r--r-- | src/platform/freebsd.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh new file mode 100644 index 0000000..3900f10 --- /dev/null +++ b/src/platform/freebsd.sh @@ -0,0 +1,21 @@ +tmpdir() { + ramdisk="/var/tmp/password-store.ramdisk" + if [[ -d $ramdisk && -d $ramdisk && -d $ramdisk ]]; then + tmp_dir="$(TMPDIR=$ramdisk mktemp -t "$template" -d)" + else + yesno "$(cat <<PROMPT +A ramdisk does not exist at + + $ramdisk + +which means that it may be difficult to entirely erase +the temporary non-encrypted password file after editing. +Are you sure you would like to continue? +PROMPT +)" + tmp_dir="$(mktemp -t "$template" -d)" + fi +} + +GPG="gpg2" +GETOPT="/usr/local/bin/getopt" |