mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-09 03:21:56 +02:00
ramips: setup mac and network interfaces from separate functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29382 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bee289fa27
commit
a77cc3e6c0
@ -107,21 +107,43 @@ set_macs_only_lan_from_nvram()
|
|||||||
set_macs_only_lan "$lan_mac"
|
set_macs_only_lan "$lan_mac"
|
||||||
}
|
}
|
||||||
|
|
||||||
board=$(ramips_board_name)
|
ramips_setup_interfaces()
|
||||||
|
{
|
||||||
|
local board="$1"
|
||||||
|
|
||||||
case $board in
|
case $board in
|
||||||
f5d8235-v2)
|
|
||||||
create_lan_wan
|
|
||||||
set_macs_only_lan_from_mtd "u-boot" 262148
|
|
||||||
;;
|
|
||||||
argus-atp52b | \
|
argus-atp52b | \
|
||||||
b2c | \
|
b2c | \
|
||||||
|
f5d8235-v2 | \
|
||||||
nw718)
|
nw718)
|
||||||
create_lan_wan
|
create_lan_wan
|
||||||
set_macs_only_lan_from_mtd "factory" 4
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
|
RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
|
||||||
[ -z "${RT3X5X}" ] || create_lan_wan
|
[ -z "${RT3X5X}" ] || create_lan_wan
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
ramips_setup_macs()
|
||||||
|
{
|
||||||
|
local board="$1"
|
||||||
|
|
||||||
|
case $board in
|
||||||
|
f5d8235-v2)
|
||||||
|
set_macs_only_lan_from_mtd "u-boot" 262148
|
||||||
|
;;
|
||||||
|
|
||||||
|
argus-atp52b | \
|
||||||
|
b2c | \
|
||||||
|
nw718)
|
||||||
|
set_macs_only_lan_from_mtd "factory" 4
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
board=$(ramips_board_name)
|
||||||
|
|
||||||
|
ramips_setup_interfaces $board
|
||||||
|
ramips_setup_macs $board
|
||||||
|
Loading…
x
Reference in New Issue
Block a user