netbase: Remove persistency MAC script

The machine uses the 'net-persistent-mac' package to provide this
feature and this script were forgot to be removed when moving to
it. While on that, updates the bbapend version to follow OE-Core
upgrade.

Change-Id: I0ef64c4ccec70dfe3e0e038e83abb823b2d2a1a6
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2013-05-03 11:47:56 +00:00
parent 864579b3ea
commit 83e8f04f08
2 changed files with 0 additions and 24 deletions

View File

@ -1,22 +0,0 @@
#!/bin/sh
set -e
mac_file="/var/lib/mac/mac.$IFACE"
# Store MAC for reuse
mkdir -p /var/lib/mac
if [ ! -r "$mac_file" ]; then
echo "Storing MAC for $IFACE for future use." > /dev/stderr
cat /sys/class/net/usb0/address > "$mac_file"
exit 0
fi
# Restore MAC setting
stored=`cat "$mac_file"`
current=`cat /sys/class/net/usb0/address`
if [ "$current" != "$stored" ]; then
echo "Setting back to old MAC."
ifconfig $IFACE hw ether $stored
fi

View File

@ -1,3 +1 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/netbase:"
PRINC := "${@int(PRINC) + 1}"