wwan: Make ModemManager be started by wwan-config
wwan-config is also monitoring ModemManager to detect potential failures. BugzID: 65396
This commit is contained in:
parent
07a3d136d7
commit
5bf5cd79a6
|
|
@ -11,3 +11,5 @@ do_install_append() {
|
|||
install -m 0644 ${WORKDIR}/77-mm-netmodule-whitelist.rules ${D}${libdir}/udev/rules.d/
|
||||
sed -i -e 's/bin\/ModemManager/bin\/ModemManager --filter-policy=WHITELIST-ONLY/g' ${D}${systemd_unitdir}/system/ModemManager.service
|
||||
}
|
||||
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
|
|
|||
|
|
@ -40,13 +40,13 @@ do_install_append() {
|
|||
|
||||
install -d ${D}/${sysconfdir}/wwan
|
||||
if [ ! -z "${WWAN_NBR}" ] ; then
|
||||
install -d ${D}${sysconfdir}/systemd/system/ModemManager.service.requires/
|
||||
install -d ${D}${sysconfdir}/systemd/system/multi-user.target.wants/
|
||||
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
|
||||
${D}${sysconfdir}/systemd/system/multi-user.target.wants/wwan-config@wwan$i.service
|
||||
fi
|
||||
|
||||
install -m 0644 ${WORKDIR}/default.conf ${D}${sysconfdir}/wwan/wwan$i.conf
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
[Unit]
|
||||
Description=WWAN configurator for device %I
|
||||
Before=ModemManager.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
|
|
@ -9,5 +8,5 @@ PIDFile=/run/%I.pid
|
|||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
RequiredBy=ModemManager.service
|
||||
RequiredBy=multi-user.target
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue