From 5107fd236fb078b23c0e239c5ab6ffdaef98bc49 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 15 Nov 2009 21:34:17 +0100 Subject: Renaming functions.sh to live-helper.sh. --- live-helper.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 live-helper.sh (limited to 'live-helper.sh') diff --git a/live-helper.sh b/live-helper.sh new file mode 100755 index 000000000..626ba3f70 --- /dev/null +++ b/live-helper.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +LH_BASE="${LH_BASE:-/usr/share/live-helper}" + +# Source global functions +for FUNCTION in "${LH_BASE}"/functions/*.sh +do + . "${FUNCTION}" +done + +# Source local functions +if ls scripts/functions/*.sh > /dev/null 2>&1 +then + for FUNCTION in scripts/functions/*.sh + do + . "${FUNCTION}" + done +fi -- cgit v1.2.3