From 34553e8cc9ad4530d3f52c3423e5c52fdacac539 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 23 Jul 2020 12:50:48 +0200 Subject: add vfconfig Signed-off-by: Jo-Philipp Wich --- package/network/config/vfconfig/files/vfconfig.include | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 package/network/config/vfconfig/files/vfconfig.include (limited to 'package/network/config/vfconfig/files/vfconfig.include') 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 +} -- cgit v1.2.3