summaryrefslogtreecommitdiff
path: root/testing/ovn/ovs-ifupdown-alpine.patch
blob: 2c156f0101f475120d45fc994fa905af0bbfc736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh
index 952d1b0..7aed7e0 100755
--- a/debian/ifupdown.sh
+++ b/debian/ifupdown.sh
@@ -35,8 +35,10 @@ if [ -f $SERVICE_UNIT ] && [ -x /bin/systemctl ]; then
         systemctl start openvswitch-switch.service
     fi
 else
-    if service openvswitch-switch status > /dev/null 2>&1; then
-        service openvswitch-switch start
+    if ! /etc/init.d/ovs-vswitchd status &>/dev/null; then
+        /etc/init.d/ovs-modules start
+        /etc/init.d/ovsdb-server start
+        /etc/init.d/ovs-vswitchd start
     fi
 fi