aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/vfconfig/files/vfconfig.include
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/config/vfconfig/files/vfconfig.include')
-rwxr-xr-xpackage/network/config/vfconfig/files/vfconfig.include11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/config/vfconfig/files/vfconfig.include b/package/network/config/vfconfig/files/vfconfig.include
new file mode 100755
index 0000000000..4ac11d8061
--- /dev/null
+++ b/package/network/config/vfconfig/files/vfconfig.include
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+setup_switch() {
+ # Skip switch setup on network restart. The netifd process
+ # will be started afterwards and remove all interfaces again...
+ if [ "$initscript" = /etc/init.d/network ] && [ "$action" = restart ]; then
+ return 0
+ fi
+
+ /sbin/dsaconfig apply 2>&1 | logger -t dsaconfig
+}