aboutsummaryrefslogtreecommitdiffstats
path: root/meta-arago-distro/classes/remove-net-rules.bbclass
blob: 2764f7bbd602c5d3ba908d91b1389ea3753c79e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Add a ROOTFS_POSTPROCESS_COMMAND that will strip the write_net_rules
# executable from the file system.  This will prevent the
# 70-persistent-net.rules from being created.  Not having this file
# will allow moving SD cards between EVMs and similar boards such as
# beaglebone and the EVM.

ROOTFS_POSTPROCESS_COMMAND += "rootfs_rm_net_rules;"

rootfs_rm_net_rules () {
    if [ -e ${IMAGE_ROOTFS}/lib/udev/write_net_rules ]
    then
        rm ${IMAGE_ROOTFS}/lib/udev/write_net_rules
    fi
}