meta-freescale-3rdparty/recipes-core/net-persistent-mac/net-persistent-mac.bb
Adrian Alonso 99670d8956 net-persistent-mac: allow for network device MAC persistency
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>
2012-07-03 21:26:06 -05:00

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}"