Patchwork netbase: Remove persistency MAC script

login
register
mail settings
Submitter Otavio Salvador
Date May 3, 2013, 11:47 a.m.
Message ID <1367581676-30390-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/49291/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - May 3, 2013, 11:47 a.m.
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>
---
 .../imx233-olinuxino-maxi/00-persistent-mac        | 22 ----------------------
 .../{netbase_5.0.bbappend => netbase_5.1.bbappend} |  2 --
 2 files changed, 24 deletions(-)
 delete mode 100644 recipes-core/netbase/netbase/imx233-olinuxino-maxi/00-persistent-mac
 rename recipes-core/netbase/{netbase_5.0.bbappend => netbase_5.1.bbappend} (61%)

Patch

diff --git a/recipes-core/netbase/netbase/imx233-olinuxino-maxi/00-persistent-mac b/recipes-core/netbase/netbase/imx233-olinuxino-maxi/00-persistent-mac
deleted file mode 100644
index 8981d38..0000000
--- a/recipes-core/netbase/netbase/imx233-olinuxino-maxi/00-persistent-mac
+++ /dev/null
@@ -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
diff --git a/recipes-core/netbase/netbase_5.0.bbappend b/recipes-core/netbase/netbase_5.1.bbappend
similarity index 61%
rename from recipes-core/netbase/netbase_5.0.bbappend
rename to recipes-core/netbase/netbase_5.1.bbappend
index 2c1ccbe..04648c7 100644
--- a/recipes-core/netbase/netbase_5.0.bbappend
+++ b/recipes-core/netbase/netbase_5.1.bbappend
@@ -1,3 +1 @@ 
 FILESEXTRAPATHS_prepend := "${THISDIR}/netbase:"
-
-PRINC := "${@int(PRINC) + 1}"