mac-address-set: use own services for bt and wlan settings
settin mac address of bt and wlan is now triggered in two separated services. BugzID: 77171 Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
This commit is contained in:
parent
d4799485a9
commit
7c3befb14c
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
After=tibluetooth.service
|
||||||
|
After=jody-w1-bt-init.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/mac-address-set -b -l 1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
After=tibluetooth.service
|
|
||||||
Before=NetworkManager.service
|
Before=NetworkManager.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/bin/mac-address-set
|
ExecStart=/usr/bin/mac-address-set -w -l 1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
@ -9,7 +9,8 @@ PR = "r2"
|
||||||
inherit systemd
|
inherit systemd
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
file://mac-address-set.service \
|
file://wlan-address-set.service \
|
||||||
|
file://bt-address-set.service \
|
||||||
file://mac-address-set.sh \
|
file://mac-address-set.sh \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
@ -17,7 +18,7 @@ S = "${WORKDIR}"
|
||||||
|
|
||||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||||
|
|
||||||
SYSTEMD_SERVICE_${PN} = "mac-address-set.service"
|
SYSTEMD_SERVICE_${PN} = "wlan-address-set.service bt-address-set.service"
|
||||||
SYSTEMD_AUTO_ENABLE ?= "enable"
|
SYSTEMD_AUTO_ENABLE ?= "enable"
|
||||||
|
|
||||||
FILES_${PN}_append = " \
|
FILES_${PN}_append = " \
|
||||||
|
|
@ -27,7 +28,8 @@ FILES_${PN}_append = " \
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}${systemd_unitdir}/system/
|
install -d ${D}${systemd_unitdir}/system/
|
||||||
install -m 0644 mac-address-set.service ${D}${systemd_unitdir}/system/
|
install -m 0644 wlan-address-set.service ${D}${systemd_unitdir}/system/
|
||||||
|
install -m 0644 bt-address-set.service ${D}${systemd_unitdir}/system/
|
||||||
|
|
||||||
install -d ${D}/usr/bin
|
install -d ${D}/usr/bin
|
||||||
install -m 0755 mac-address-set.sh ${D}/usr/bin/mac-address-set
|
install -m 0755 mac-address-set.sh ${D}/usr/bin/mac-address-set
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue