diff options
author | Daniel Baumann <daniel@debian.org> | 2009-11-15 21:34:17 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2009-11-22 14:38:29 +0100 |
commit | 5107fd236fb078b23c0e239c5ab6ffdaef98bc49 (patch) | |
tree | 3408e52f0c51b4f4b53a55929340c22c71fd2b9d /live-helper.sh | |
parent | a62f12110b19a52a58d7eae871012202cfa16055 (diff) | |
download | vyos-live-build-5107fd236fb078b23c0e239c5ab6ffdaef98bc49.tar.gz vyos-live-build-5107fd236fb078b23c0e239c5ab6ffdaef98bc49.zip |
Renaming functions.sh to live-helper.sh.
Diffstat (limited to 'live-helper.sh')
-rwxr-xr-x | live-helper.sh | 18 |
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 |