From 4c41bb9d1b95ee745a4318a6484b723f145c08da Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 19 Mar 2018 13:48:52 +0100 Subject: Adding local includes (files copy; FIXME). Signed-off-by: Daniel Baumann --- share/scripts/debconf.d/0003-debconf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf index cb9ae2a..f58f57b 100755 --- a/share/scripts/debconf.d/0003-debconf +++ b/share/scripts/debconf.d/0003-debconf @@ -1068,6 +1068,25 @@ Internal_options () fi echo "CNT_OVERLAY=\"${CNT_OVERLAY}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + + NUMBER="1" + + while db_get cnt-debconf/files${NUMBER}/copy && [ "${RET}" ] + do + eval FILES${NUMBER}_COPY="\"${RET}\"" # string (w/o empty) + + NUMBER="$((${NUMBER} + 1))" + done + + FILES_NUMBER="$((${NUMBER} - 1))" + + echo "FILES_NUMBER=\"${FILES_NUMBER}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + + for NUMBER in $(seq 1 ${FILES_NUMBER}) + do + eval FILES_COPY="$`echo FILES${NUMBER}_COPY`" + echo "FILES${NUMBER}_COPY=\"${FILES_COPY}\"" >> "${DEBCONF_TMPDIR}/debconf.default" + done } Mode -- cgit v1.2.3