wwan-config: Fix missing config file

When the service was not enabled by default, the config file was
not created either.

BugzID: 61873
This commit is contained in:
Alexandre Bard 2020-03-09 14:00:03 +01:00
parent 7d1cdfd8c9
commit 343c9c789e
1 changed files with 5 additions and 2 deletions

View File

@ -39,12 +39,15 @@ do_install_append() {
install -m 0644 ${WORKDIR}/wwan-config@.service ${D}/${systemd_unitdir}/system/
install -d ${D}/${sysconfdir}/wwan
if [ ! -z "${WWAN_NBR}" ] && [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ] ; then
if [ ! -z "${WWAN_NBR}" ] ; then
install -d ${D}${sysconfdir}/systemd/system/ModemManager.service.requires/
for i in `seq 0 ${WWAN_NBR}`; do
if [ $i = ${WWAN_NBR} ]; then continue; fi
ln -sf ${systemd_unitdir}/system/wwan-config@.service \
if [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ] ; then
ln -sf ${systemd_unitdir}/system/wwan-config@.service \
${D}${sysconfdir}/systemd/system/ModemManager.service.requires/wwan-config@wwan$i.service
fi
install -m 0644 ${WORKDIR}/default.conf ${D}${sysconfdir}/wwan/wwan$i.conf
done