summaryrefslogtreecommitdiff
path: root/live-helper.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-11-22 14:40:20 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:16:26 +0100
commit5e4952e8a796851369073d47e375e97c072e040f (patch)
tree102412a488c35606ad867bbfa468d21366078ea6 /live-helper.sh
parentaf64109b622dd1a33cb9052d33a58557bef44503 (diff)
downloadvyos-live-build-5e4952e8a796851369073d47e375e97c072e040f.tar.gz
vyos-live-build-5e4952e8a796851369073d47e375e97c072e040f.zip
Adding debian version 2.0~a1-1.
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