mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
Allow setting the MAC address on a broadcom device (#1512)
SVN-Revision: 13154
This commit is contained in:
parent
d4f01c8c2f
commit
9c97f76e21
@ -122,6 +122,7 @@ enable_broadcom() {
|
|||||||
config_get_bool frameburst "$device" frameburst
|
config_get_bool frameburst "$device" frameburst
|
||||||
config_get macfilter "$device" macfilter
|
config_get macfilter "$device" macfilter
|
||||||
config_get maclist "$device" maclist
|
config_get maclist "$device" maclist
|
||||||
|
config_get macaddr "$device" macaddr
|
||||||
local vif_pre_up vif_post_up vif_do_up
|
local vif_pre_up vif_post_up vif_do_up
|
||||||
|
|
||||||
_c=0
|
_c=0
|
||||||
@ -234,6 +235,7 @@ enable_broadcom() {
|
|||||||
|
|
||||||
config_get ifname "$vif" ifname
|
config_get ifname "$vif" ifname
|
||||||
#append if_up "ifconfig $ifname up" ";$N"
|
#append if_up "ifconfig $ifname up" ";$N"
|
||||||
|
[ -z "$macaddr" ] || append if_up "ifconfig $ifname hw ether $macaddr" ";$N"
|
||||||
local net_cfg bridge
|
local net_cfg bridge
|
||||||
net_cfg="$(find_net_config "$vif")"
|
net_cfg="$(find_net_config "$vif")"
|
||||||
[ -z "$net_cfg" ] || {
|
[ -z "$net_cfg" ] || {
|
||||||
|
Loading…
Reference in New Issue
Block a user