mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-05 05:15:24 +02:00
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:
parent
864579b3ea
commit
83e8f04f08
|
@ -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
|
|
@ -1,3 +1 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/netbase:"
|
||||
|
||||
PRINC := "${@int(PRINC) + 1}"
|
Loading…
Reference in New Issue
Block a user