summaryrefslogtreecommitdiff
path: root/src/platform/freebsd.sh
blob: d2b8163c36f7203cead26cfd052609f58a2ad157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright (C) 2012 Jonathan Chu <milki@rescomp.berkeley.edu>. All Rights Reserved.
# This file is licensed under the GPLv2+. Please see COPYING for more information.

tmpdir() {
	local ramdisk="/var/tmp/password-store.ramdisk"
	if [[ -d $ramdisk && -d $ramdisk && -d $ramdisk ]]; then
		SECURE_TMPDIR="$(TMPDIR=$ramdisk mktemp -t "$template" -d)"
	else
		yesno "$(echo    "A ramdisk does not exist at $ramdisk, which means that it may"
			 echo    "be difficult to entirely erase the temporary non-encrypted"
			 echo    "password file after editing. Are you sure you would like to"
			 echo -n "continue?")"

		SECURE_TMPDIR="$(mktemp -t "$template" -d)"
	fi
}

GETOPT="/usr/local/bin/getopt"
SHRED="rm -P -f"
td>-26/+114 2008-03-06Update translationRené 'Necoro' Neumann2-349/+393 2008-03-06Update createpot.shRené 'Necoro' Neumann1-3/+2 2008-03-06Use 'nofork' instead of 'nolistener'René 'Necoro' Neumann1-3/+3 2008-03-05Install glade files into template dir and not data dirRené 'Necoro' Neumann2-2/+1 2008-03-05Added dependency listRené 'Necoro' Neumann3-117/+237