wwan-config: Fix systemd service location
The service is required by multi user target and not just wanted. BugzID: 70251
This commit is contained in:
parent
99ec03ae74
commit
52a8c3468e
|
|
@ -41,13 +41,13 @@ do_install_append() {
|
|||
|
||||
install -d ${D}/${sysconfdir}/wwan
|
||||
if [ ! -z "${WWAN_NBR}" ] ; then
|
||||
install -d ${D}${sysconfdir}/systemd/system/multi-user.target.wants/
|
||||
install -d ${D}${sysconfdir}/systemd/system/multi-user.target.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/multi-user.target.wants/wwan-config@wwan$i.service
|
||||
${D}${sysconfdir}/systemd/system/multi-user.target.requires/wwan-config@wwan$i.service
|
||||
fi
|
||||
|
||||
install -m 0644 ${WORKDIR}/default.conf ${D}${sysconfdir}/wwan/wwan$i.conf
|
||||
|
|
|
|||
Loading…
Reference in New Issue