treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / kirkwood / base-files / etc / board.d / 02_network
index 35d735f9dbf4515ce51071432de487296f23f644..85049d296880fa05d8b8b3bb5ae8f7f1ff87c720 100755 (executable)
@@ -5,11 +5,10 @@
 
 . /lib/functions/uci-defaults.sh
 . /lib/functions/system.sh
-. /lib/kirkwood.sh
 
 board_config_update
 
-board=$(kirkwood_board_name)
+board=$(board_name)
 
 case "$board" in
 "dockstar"|\
@@ -35,6 +34,9 @@ case "$board" in
        ucidef_set_interface_lan "eth0" "dhcp"
        ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
        ;;
+"on100")
+       ucidef_set_interface_lan "eth0 eth1"
+       ;;
 *)
        ucidef_set_interface_lan "eth0"
        ;;