summaryrefslogtreecommitdiff
path: root/live-helper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'live-helper.sh')
-rwxr-xr-xlive-helper.sh18
1 files changed, 18 insertions, 0 deletions
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