diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-07-11 19:33:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-07-13 06:58:51 +0000 |
commit | e8714a58bf2bbd8a5717a5bb73c957bc94594407 (patch) | |
tree | b47fccc10f4c3d47ed41ba4c81d193957ca53c48 /main/openvswitch/ifupdown.sh | |
parent | 7fbec2af9bfa5c13ca3764e45c102421aa055d3e (diff) | |
download | aports-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.sh')
-rwxr-xr-x | main/openvswitch/ifupdown.sh | 4 |
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}\" |