diff options
Diffstat (limited to 'testing/ovn/ovs-ifupdown-alpine.patch')
-rw-r--r-- | testing/ovn/ovs-ifupdown-alpine.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/ovn/ovs-ifupdown-alpine.patch b/testing/ovn/ovs-ifupdown-alpine.patch new file mode 100644 index 00000000000..2c156f0101f --- /dev/null +++ b/testing/ovn/ovs-ifupdown-alpine.patch @@ -0,0 +1,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 + |