1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-13 05:59:06 +01:00
limosek-zaf/lib/preload.sh

23 lines
444 B
Bash
Raw Normal View History

2016-04-01 12:20:23 +02:00
#!/bin/sh
. /etc/zaf.conf
2016-04-01 15:51:45 +02:00
[ -z "$ZAF_TMP_BASE" ] && ZAF_TMP_BASE=/tmp/zaf
ZAF_TMP_DIR="${ZAF_TMP_BASE}-${USER}"
trap "rm -rif ${ZAF_TMP_DIR}" EXIT
! [ -d "${ZAF_TMP_DIR}" ] && mkdir "${ZAF_TMP_DIR}"
[ -z "$ZAF_DEBUG" ] && ZAF_DEBUG=1
2016-04-01 12:20:23 +02:00
. ${ZAF_LIB_DIR}/zaf.lib.sh
2016-04-01 15:51:45 +02:00
. ${ZAF_LIB_DIR}/ctrl.lib.sh
. ${ZAF_LIB_DIR}/os.lib.sh
export ZAF_LIB_DIR
export ZAF_TMP_DIR
export ZAF_PLUGINS_DIR
2016-04-01 12:20:23 +02:00
2016-04-04 14:00:44 +02:00
[ "$(basename $0)" = "preload.sh" ] && [ -n "$*" ] && $@
2016-04-01 12:20:23 +02:00