aboutsummaryrefslogtreecommitdiffstats
path: root/main/openvswitch/ifupdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'main/openvswitch/ifupdown.sh')
-rwxr-xr-xmain/openvswitch/ifupdown.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/openvswitch/ifupdown.sh b/main/openvswitch/ifupdown.sh
index 9c0054f7d0..a2bd048ffc 100755
--- a/main/openvswitch/ifupdown.sh
+++ b/main/openvswitch/ifupdown.sh
@@ -29,6 +29,10 @@ if (ovs_vsctl --version) > /dev/null 2>&1; then :; else
exit 0
fi
+if /etc/init.d/ovs-vswitchd status > /dev/null 2>&1; then :; else
+ /etc/init.d/ovs-vswitchd start
+fi
+
if [ "${MODE}" = "start" ]; then
eval OVS_EXTRA=\"${IF_OVS_EXTRA}\"