dsaconfig: introduce package for UCI configuration of VLAN filter rules
[openwrt/staging/rmilecki.git] / package / network / config / dsaconfig / files / dsaconfig.include
1 #!/bin/sh
2
3 setup_switch() {
4 # Skip switch setup on network restart. The netifd process
5 # will be started afterwards and remove all interfaces again...
6 if [ "$initscript" = /etc/init.d/network ] && [ "$action" = restart ]; then
7 return 0
8 fi
9
10 /sbin/dsaconfig apply 2>&1 | logger -t dsaconfig
11 }