forked from freifunk-franken/firmware
21 lines
416 B
Plaintext
21 lines
416 B
Plaintext
|
|
. /lib/functions/fff/interfaces
|
|
|
|
configure() {
|
|
if vlan=$(uci -q get gateway.@wan[0].vlan); then
|
|
uci set network.wan.ifname="${SWITCHDEV}.$vlan"
|
|
elif iface=$(uci -q get gateway.@wan[0].iface); then
|
|
uci set network.wan.ifname="$iface"
|
|
else
|
|
echo "WARNING: No vlan/interface for WAN specified. The default setting won't be overwritten."
|
|
fi
|
|
}
|
|
|
|
apply() {
|
|
uci commit network
|
|
}
|
|
|
|
revert() {
|
|
uci revert network
|
|
}
|