The sed -e ‘d’ commands with ‘#’ will not work, a slash is needed, fix for 7ffd2288d9
(2015-01-15) and 578dbee516
(2015-01-29)
This commit is contained in:
parent
f323c93b73
commit
9536a37af0
|
@ -283,7 +283,7 @@ sed -i -e "s#@MEMTEST_VERSION@#${LB_MEMTEST}#g" -e "s#@MEMTEST@#/${MEMTEST_PATH}
|
|||
# Replace placeholder for optional install menu entries include
|
||||
if [ "${LB_DEBIAN_INSTALLER}" = "none" ]; then
|
||||
rm -f "${_TARGET}"/install.cfg
|
||||
sed -i "#@OPTIONAL_INSTALLER_INCLUDE@#d" "${_TARGET}"/menu.cfg
|
||||
sed -i "/@OPTIONAL_INSTALLER_INCLUDE@/d" "${_TARGET}"/menu.cfg
|
||||
else
|
||||
sed -i "s#@OPTIONAL_INSTALLER_INCLUDE@#include install.cfg#g" "${_TARGET}"/menu.cfg
|
||||
fi
|
||||
|
@ -291,7 +291,7 @@ fi
|
|||
# Replace placeholder for optional memtest menu entry include
|
||||
if [ ! -f "binary/${MEMTEST_PATH}" ]; then
|
||||
rm -f "${_TARGET}"/memtest.cfg
|
||||
sed -i -e "#@OPTIONAL_MEMTEST_INCLUDE@#d" "${_TARGET}"/utilities.cfg
|
||||
sed -i -e "/@OPTIONAL_MEMTEST_INCLUDE@/d" "${_TARGET}"/utilities.cfg
|
||||
else
|
||||
sed -i -e "s#@OPTIONAL_MEMTEST_INCLUDE@#include memtest.cfg#g" "${_TARGET}"/utilities.cfg
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue