Openwrt/target/linux/archs38/base-files/etc/board.d/02_network
Adrian Schmutzler 3c190ef112 archs38: use generic 02_sysinfo
Currently archs38 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs103 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 73015c4cb3 ("linux: add support of Synopsys ARCHS38-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-22 18:28:09 +02:00

20 lines
229 B
Bash
Executable File

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