summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorJonathan Bauer2013-06-10 13:35:35 +0200
committerJonathan Bauer2013-06-10 13:35:35 +0200
commitf1d7e588e39544aeddc16efceadcbd3bd8920379 (patch)
tree08bca31f05bfbd0cfe5e48ee12e802c232ff502a /remote/rootfs
parent[kernel] also clean .built (diff)
downloadtm-scripts-f1d7e588e39544aeddc16efceadcbd3bd8920379.tar.gz
tm-scripts-f1d7e588e39544aeddc16efceadcbd3bd8920379.tar.xz
tm-scripts-f1d7e588e39544aeddc16efceadcbd3bd8920379.zip
[rootfs-stage31] revert changing mac of eth0
Diffstat (limited to 'remote/rootfs')
-rwxr-xr-xremote/rootfs/rootfs-stage31/data/bin/setup_network7
1 files changed, 4 insertions, 3 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/bin/setup_network b/remote/rootfs/rootfs-stage31/data/bin/setup_network
index 57872244..8aedeaf1 100755
--- a/remote/rootfs/rootfs-stage31/data/bin/setup_network
+++ b/remote/rootfs/rootfs-stage31/data/bin/setup_network
@@ -14,9 +14,10 @@ BRIDGE="br0"
SLAVE="eth0"
BRIDGEMAC="$MAC"
-# Flip mac address of original interface - this var is not local so init sees the changes too
-MAC="$(echo "$MAC" | awk -F ':' '{printf $1 ":" $2 ":" $5 ":" $3 ":" $6 ":" $4}')"
-ip link set addr "$MAC" "$SLAVE"
+# Following was supposed to prevent scripts from getting confused by multiple interfaces with same MAC - does not work though
+## Flip mac address of original interface - this var is not local so init sees the changes too
+#MAC="$(echo "$MAC" | awk -F ':' '{printf $1 ":" $2 ":" $5 ":" $3 ":" $6 ":" $4}')"
+#ip link set addr "$MAC" "$SLAVE"
brctl addbr "$BRIDGE" || drop_shell "Could not create bridge $BRIDGE"
brctl stp "$BRIDGE" 0