start() {
include /lib/network
scan_interfaces
- config_load /var/state/network
config_get WAN wan ifname
config_get WANDEV wan device
## USER RULES
[ -f /etc/firewall.user ] && . /etc/firewall.user
- [ -n "$WAN" -a -e /etc/config/firewall ] && {
+ [ -n "$WAN" -a -e /etc/firewall.config ] && {
export WAN
- awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/config/firewall | ash
+ awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/firewall.config | ash
}
}