Replacing strings in all syslinux config files, not just certain hardcoded ones.
This commit is contained in:
parent
153a796b31
commit
f1410a0945
|
@ -211,18 +211,15 @@ then
|
||||||
rm -f "${_TARGET}/live.cfg.in"
|
rm -f "${_TARGET}/live.cfg.in"
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
fi
|
||||||
|
|
||||||
if [ -e ${_TARGET}/install.cfg ]
|
for _FILE in "${_TARGET}"/*.cfg
|
||||||
then
|
do
|
||||||
sed -i -e "s#@APPEND_INSTALL@#${LB_BOOTAPPEND_INSTALL}#g" \
|
sed -i -e "s#@LB_BOOTAPPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
|
||||||
${_TARGET}/install.cfg
|
-e "s#@LB_BOOTAPPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \
|
||||||
fi
|
-e "s#@APPEND_INSTALL@#${LB_BOOTAPPEND_INSTALL}#g" \
|
||||||
|
"${_FILE}"
|
||||||
|
done
|
||||||
|
|
||||||
if [ -e "${_TARGET}/splash.svg.in" ]
|
if [ -e "${_TARGET}/splash.svg.in" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue