Skip to content
Snippets Groups Projects
Commit 3348308a authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

arc770: switch from uci-defaults to board.d


Signed-off-by: default avatarJo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47743
parent dc4b0037
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# Copyright (C) 2015 OpenWrt.org
. /lib/functions/uci-defaults-new.sh
board_config_update
ucidef_set_board_id "$(cat /tmp/sysinfo/board_name)"
ucidef_set_model_name "$(cat /tmp/sysinfo/model)"
board_config_flush
exit 0
......@@ -3,21 +3,17 @@
# Copyright (C) 2015 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
touch /etc/config/network
. /lib/arc.sh
. /lib/functions/uci-defaults.sh
. /lib/functions/uci-defaults-new.sh
ucidef_set_interface_loopback
board_config_update
case "$( arc_board_name )" in
"arc-sdp"*)
ucidef_set_interface_raw "lan" "eth0" "dhcp"
ucidef_set_interface_lan "eth0" "dhcp"
;;
esac
uci commit network
board_config_flush
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment