| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2013-2015 OpenWrt.org | ||||
| 3 | # | ||||
| 4 | |||||
| 5 | . /lib/functions/uci-defaults.sh | ||||
| 6 | |||||
| 7 | board_config_update | ||||
| 8 | |||||
| 9 | json_is_a network object && exit 0 | ||||
| 10 | |||||
| 11 | ucidef_set_interface_lan 'eth0' | ||||
| 12 | [ -d /sys/class/net/eth1 ] && ucidef_set_interface_wan 'eth1' | ||||
| 13 | |||||
| 14 | board_config_flush | ||||
| 15 | |||||
| 16 | exit 0 | ||||