1 2 3 4 5 6 7 8 9 10
#!/bin/sh . /lib/functions/uci-defaults.sh ucidef_set_interface_loopback ucidef_set_interface_raw "lan" "eth0" uci batch <<EOF set network.lan.proto='dhcp' EOF