|
|
@ -5,15 +5,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
[ -e /etc/config/network ] && exit 0 |
|
|
|
[ -e /etc/config/network ] && exit 0 |
|
|
|
|
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
touch /etc/config/network |
|
|
|
touch /etc/config/network |
|
|
|
|
|
|
|
|
|
|
|
ucidef_set_interface_loopback |
|
|
|
. /lib/functions/uci-defaults.sh |
|
|
|
|
|
|
|
|
|
|
|
board=$(cat /proc/device-tree/model) |
|
|
|
ucidef_set_interface_loopback |
|
|
|
|
|
|
|
|
|
|
|
case "$board" in |
|
|
|
case "`cat /proc/device-tree/model`" in |
|
|
|
"Gateworks Ventana GW51XX" |\ |
|
|
|
"Gateworks Ventana GW51XX" |\ |
|
|
|
"Gateworks Ventana GW52XX") |
|
|
|
"Gateworks Ventana GW52XX") |
|
|
|
ucidef_set_interface_lan 'eth0' |
|
|
|
ucidef_set_interface_lan 'eth0' |
|
|
|