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:
parent
7d1cdfd8c9
commit
343c9c789e
|
|
@ -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
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue