diff options
author | Daniel Baumann <daniel@debian.org> | 2009-11-22 14:36:42 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2009-11-22 14:38:00 +0100 |
commit | a62f12110b19a52a58d7eae871012202cfa16055 (patch) | |
tree | 0bd188079c808ee8956fb5304c46ce8266b49f75 /functions.sh | |
download | vyos-live-build-a62f12110b19a52a58d7eae871012202cfa16055.tar.gz vyos-live-build-a62f12110b19a52a58d7eae871012202cfa16055.zip |
Renaming categories to archive areas (Closes: #519690).
Diffstat (limited to 'functions.sh')
-rwxr-xr-x | functions.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh new file mode 100755 index 000000000..626ba3f70 --- /dev/null +++ b/functions.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 |