diff options
author | jnqnfe <jnqnfe@gmail.com> | 2015-02-05 03:30:47 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2020-03-10 12:39:37 +0000 |
commit | b49abcc1a8002c52b45c3e3da6723097f99c26e6 (patch) | |
tree | 46f650bb927ba9a8a705d01aa73c090c98f47c12 /functions/init.sh | |
parent | ed2d70bde10e8ff02e7409c125a6c70da8d6d9ba (diff) | |
download | vyos-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-x | functions/init.sh | 22 |
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 +} |