aboutsummaryrefslogtreecommitdiffstats
path: root/main/openvswitch/ifupdown-alpine.patch
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-07-11 19:33:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-13 06:58:51 +0000
commite8714a58bf2bbd8a5717a5bb73c957bc94594407 (patch)
treeb47fccc10f4c3d47ed41ba4c81d193957ca53c48 /main/openvswitch/ifupdown-alpine.patch
parent7fbec2af9bfa5c13ca3764e45c102421aa055d3e (diff)
downloadaports-e8714a58bf2bbd8a5717a5bb73c957bc94594407.tar.bz2
aports-e8714a58bf2bbd8a5717a5bb73c957bc94594407.tar.xz
main/openvswitch: fix network script / improve docs / integrate LXC
small fix for /etc/network/if-pre-up.d/openvswitch. When networking is started now ovs-vswitchd will be started if stopped. added /usr/share/doc/openvswitch/README.alpine which provides instructions on how to use /etc/network/pre-up.d/openvswitch. You can now configure bridges / ports / bonds in /etc/network/interfaces. You can also integrate LXC into OVS / ifupdown easily via 'ovsup' & 'ovsdown': https://github.com/itoffshore/lxc-scripts If you install 'apk-post-messages' & 'openvswitch-doc' detailed instructions are printed.
Diffstat (limited to 'main/openvswitch/ifupdown-alpine.patch')
-rw-r--r--main/openvswitch/ifupdown-alpine.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/openvswitch/ifupdown-alpine.patch b/main/openvswitch/ifupdown-alpine.patch
index e35b4aa64a..a417f72cef 100644
--- a/main/openvswitch/ifupdown-alpine.patch
+++ b/main/openvswitch/ifupdown-alpine.patch
@@ -1,5 +1,16 @@
--- ./debian/ifupdown.sh.orig
+++ ./debian/ifupdown.sh
+@@ -29,8 +29,8 @@ if (ovs_vsctl --version) > /dev/null 2>&
+ exit 0
+ fi
+
+-if /etc/init.d/openvswitch-switch status > /dev/null 2>&1; then :; else
+- /etc/init.d/openvswitch-switch start
++if ! /etc/init.d/ovs-vswitchd status &>/dev/null; then
++ /etc/init.d/ovs-vswitchd start
+ fi
+
+ if [ "${MODE}" = "start" ]; then
@@ -38,7 +38,8 @@
${OVS_EXTRA+-- $OVS_EXTRA}