summaryrefslogtreecommitdiff
path: root/functions/init.sh
diff options
context:
space:
mode:
authorjnqnfe <jnqnfe@gmail.com>2015-02-05 03:30:47 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-10 12:39:37 +0000
commitb49abcc1a8002c52b45c3e3da6723097f99c26e6 (patch)
tree46f650bb927ba9a8a705d01aa73c090c98f47c12 /functions/init.sh
parented2d70bde10e8ff02e7409c125a6c70da8d6d9ba (diff)
downloadvyos-live-build-b49abcc1a8002c52b45c3e3da6723097f99c26e6.tar.gz
vyos-live-build-b49abcc1a8002c52b45c3e3da6723097f99c26e6.zip
tidy script init (1/4) - arg and config processing
Partial fix for #952919 Gbp-Dch: Short
Diffstat (limited to 'functions/init.sh')
-rwxr-xr-xfunctions/init.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/functions/init.sh b/functions/init.sh
new file mode 100755
index 000000000..eb73d02ae
--- /dev/null
+++ b/functions/init.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+## live-build(7) - System Build Scripts
+## Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
+##
+## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+## This is free software, and you are welcome to redistribute it
+## under certain conditions; see COPYING for details.
+
+
+Common_config_files ()
+{
+ echo "config/all config/common config/bootstrap config/chroot config/binary config/source"
+}
+
+Init_config_data ()
+{
+ Arguments "${@}"
+
+ Read_conffiles $(Common_config_files)
+ Set_defaults
+}