openwrtv3/target/linux/archs38/base-files/etc/board.d/02_network
Evgeniy Didin 4cedd1ddb3 archs38: add HSDK board to network configure scripts
In the initial patch which adds HSDK board there were no update
of network configuration scripts. Without it by default static IP
is set for br-lan and there is no access to internet.
This patch fixes the issue.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
2018-02-17 12:29:55 +01:00

18 lines
228 B
Bash
Executable file

#!/bin/sh
#
# Copyright (C) 2016 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
board_config_update
case "$(board_name)" in
"arc-sdp"*|"arc-hsdk"*)
ucidef_set_interface_lan "eth0" "dhcp"
;;
esac
board_config_flush
exit 0