mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 20:19:01 +02:00

Some network devices do not have a fixed MAC address however this is important to allow auto-configuration in a DHCP network. To accomplish it, in a more generic way, we store the MAC and restore it *before* the network services are started thus compatible with netbase and connman configurations. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Adrian Alonso <aalonso00@gmail.com>
24 lines
658 B
BlitzBasic
24 lines
658 B
BlitzBasic
SUMMARY = "Network device MAC persistency"
|
|
DESCRIPTION = "Provides support to store/restore the MAC of a specific network device"
|
|
SECTION = "base"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
|
|
|
inherit update-rc.d
|
|
|
|
INITSCRIPT_NAME = "net-persistent-mac"
|
|
INITSCRIPT_PARAMS = "start 39 S ."
|
|
|
|
SRC_URI = "file://init \
|
|
file://default"
|
|
|
|
do_install () {
|
|
install -d ${D}${sysconfdir}/init.d
|
|
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${PN}
|
|
|
|
install -d ${D}${sysconfdir}/default
|
|
install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/${PN}
|
|
}
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|