mpc85xx: migrate network setup to board detection framework
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47540
This commit is contained in:
parent
53d94f89e8
commit
8e79f25991
12
target/linux/mpc85xx/base-files/etc/uci-defaults/02_network → target/linux/mpc85xx/base-files/etc/board.d/02_network
Normal file → Executable file
12
target/linux/mpc85xx/base-files/etc/uci-defaults/02_network → target/linux/mpc85xx/base-files/etc/board.d/02_network
Normal file → Executable file
@ -1,15 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) 2014 OpenWrt.org
|
# Copyright (C) 2014-2015 OpenWrt.org
|
||||||
|
|
||||||
[ -e /etc/config/network ] && exit 0
|
. /lib/functions/uci-defaults-new.sh
|
||||||
|
|
||||||
touch /etc/config/network
|
|
||||||
|
|
||||||
. /lib/functions/uci-defaults.sh
|
|
||||||
. /lib/mpc85xx.sh
|
. /lib/mpc85xx.sh
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
. /lib/functions/system.sh
|
. /lib/functions/system.sh
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
|
||||||
ucidef_set_interface_loopback
|
ucidef_set_interface_loopback
|
||||||
|
|
||||||
board=$(mpc85xx_board_name)
|
board=$(mpc85xx_board_name)
|
||||||
@ -26,6 +24,6 @@ tl-wdr4900-v1)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
uci commit network
|
board_config_flush
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user