realview: switch from uci-defaults to board.d
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47739
This commit is contained in:
parent
7cf1ff8a75
commit
adbe47380e
3 changed files with 20 additions and 6 deletions
13
target/linux/realview/base-files/etc/board.d/00_model
Executable file
13
target/linux/realview/base-files/etc/board.d/00_model
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2015 OpenWrt.org
|
||||||
|
|
||||||
|
. /lib/functions/uci-defaults-new.sh
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
|
||||||
|
ucidef_set_board_id "realview-eb-mpcore"
|
||||||
|
ucidef_set_model_name "ARM Ltd. Realview"
|
||||||
|
|
||||||
|
board_config_flush
|
||||||
|
|
||||||
|
exit 0
|
7
target/linux/realview/base-files/etc/board.d/02_network
Executable file
7
target/linux/realview/base-files/etc/board.d/02_network
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /lib/functions/uci-defaults-new.sh
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
ucidef_set_interface_lan "eth0" "dhcp"
|
||||||
|
board_config_flush
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. /lib/functions/uci-defaults.sh
|
|
||||||
|
|
||||||
ucidef_set_interface_loopback
|
|
||||||
ucidef_set_interface_raw "lan" "eth0" "dhcp"
|
|
Loading…
Reference in a new issue