~sotirisp/kindleto

00e818851b96af084512c13113e62d9715f134a1 — Sotiris Papatheodorou 29 days ago d604468
Save the TOFU cache on the storage partition
1 files changed, 3 insertions(+), 4 deletions(-)

M kindleto-init
M kindleto-init => kindleto-init +3 -4
@@ 45,11 45,10 @@ hack_start() {
	fi
	# Start normally.
	if [ -f "$hack_enable" ] && [ -f "$hack_script" ]; then
		# Create the TOFU cache until kindleto can do it itself
		mkdir -p /tmp/root/.cache
		touch /tmp/root/.cache/kindleto-tofu.txt
		chmod +x "$hack_script"
		$hack_script -webroot "$hack_basedir/web" -certfile "$hack_basedir/client-certs.json" &
		$hack_script -webroot "$hack_basedir/web" \
			-certfile "$hack_basedir/client-certs.json" \
			-tofucache "$hack_basedir/kindleto-tofu.txt" &
	else
		msg "$hack_name is disabled" I
	fi