summaryrefslogtreecommitdiff
path: root/testing/ovn/ovs-ifupdown-alpine.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2023-10-25 14:55:44 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2023-10-25 15:02:07 +0000
commitc0183506d8fa469633e5fbbbfdede1848d399de8 (patch)
tree5a8f95a0bd032000f456cadaa271ac3f3802515c /testing/ovn/ovs-ifupdown-alpine.patch
parent3775f4da5771cc971b184acfff1ea074dfa956eb (diff)
downloadaports-c0183506d8fa469633e5fbbbfdede1848d399de8.zip
testing/ovn: install more ovs components, add more init scripts
Diffstat (limited to 'testing/ovn/ovs-ifupdown-alpine.patch')
-rw-r--r--testing/ovn/ovs-ifupdown-alpine.patch17
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
+