2015-11-22 08:04:37 +00:00
|
|
|
#!/bin/sh
|
2016-03-08 18:11:55 +00:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2017-03-05 20:16:06 +00:00
|
|
|
# Copyright (C) 2017 LEDE project
|
2015-11-22 08:04:37 +00:00
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2015-11-22 08:04:37 +00:00
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2015-11-22 08:04:37 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2017-12-17 14:18:48 +00:00
|
|
|
raspberrypi,model-b |\
|
|
|
|
raspberrypi,model-b-plus |\
|
|
|
|
raspberrypi,model-b-rev2 |\
|
|
|
|
raspberrypi,2-model-b |\
|
|
|
|
raspberrypi,3-model-b)
|
2015-11-22 08:04:37 +00:00
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
2017-12-17 14:18:48 +00:00
|
|
|
|
|
|
|
raspberrypi,model-zero-w)
|
2017-03-05 20:16:07 +00:00
|
|
|
ucidef_set_interface_lan "wlan0"
|
|
|
|
;;
|
2015-11-22 08:04:37 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|