summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-03-27 12:06:00 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:07 +0200
commitf1410a0945a7d13d67ea02ab261ddac218713f8d (patch)
treebaa28f4b6eb8044971e1f42c585a44c668172d3e /scripts/build
parent153a796b31385f118c51d7722f64c2bbf443cd5a (diff)
downloadvyos-live-build-f1410a0945a7d13d67ea02ab261ddac218713f8d.tar.gz
vyos-live-build-f1410a0945a7d13d67ea02ab261ddac218713f8d.zip
Replacing strings in all syslinux config files, not just certain hardcoded ones.
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/binary_syslinux17
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index 474310781..bc86a4bd6 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -211,18 +211,15 @@ then
rm -f "${_TARGET}/live.cfg.in"
;;
esac
-elif [ -e "${_TARGET}/live.cfg" ]
-then
- sed -i -e "s#@LB_BOOTAPPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
- -e "s#@LB_BOOTAPPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \
- ${_TARGET}/live.cfg
fi
-if [ -e ${_TARGET}/install.cfg ]
-then
- sed -i -e "s#@APPEND_INSTALL@#${LB_BOOTAPPEND_INSTALL}#g" \
- ${_TARGET}/install.cfg
-fi
+for _FILE in "${_TARGET}"/*.cfg
+do
+ sed -i -e "s#@LB_BOOTAPPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
+ -e "s#@LB_BOOTAPPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \
+ -e "s#@APPEND_INSTALL@#${LB_BOOTAPPEND_INSTALL}#g" \
+ "${_FILE}"
+done
if [ -e "${_TARGET}/splash.svg.in" ]
then