summaryrefslogtreecommitdiffstats
path: root/main/openvswitch/ifupdown-alpine.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-09 16:06:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-09 16:06:12 +0000
commitc2fa69955ac724d03c7c50f155e1a2dabc125c3c (patch)
tree0f13926716058c7d6243a393db5b225b7379d25e /main/openvswitch/ifupdown-alpine.patch
parent0012ba7c5165d1d8bb45beaa0df24176a8c250c5 (diff)
downloadaports-c2fa69955ac724d03c7c50f155e1a2dabc125c3c.tar.bz2
aports-c2fa69955ac724d03c7c50f155e1a2dabc125c3c.tar.xz
main/openvswitch: move from testing
Diffstat (limited to 'main/openvswitch/ifupdown-alpine.patch')
-rw-r--r--main/openvswitch/ifupdown-alpine.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/openvswitch/ifupdown-alpine.patch b/main/openvswitch/ifupdown-alpine.patch
new file mode 100644
index 000000000..e35b4aa64
--- /dev/null
+++ b/main/openvswitch/ifupdown-alpine.patch
@@ -0,0 +1,51 @@
+--- ./debian/ifupdown.sh.orig
++++ ./debian/ifupdown.sh
+@@ -38,7 +38,8 @@
+ ${OVS_EXTRA+-- $OVS_EXTRA}
+
+ if [ ! -z "${IF_OVS_PORTS}" ]; then
+- ifup --allow="${IFACE}" ${IF_OVS_PORTS}
++# ifup --allow="${IFACE}" ${IF_OVS_PORTS}
++ ifup ${IF_OVS_PORTS}
+ fi
+ ;;
+ OVSPort)
+@@ -46,24 +47,24 @@
+ "${IFACE}" ${IF_OVS_OPTIONS} \
+ ${OVS_EXTRA+-- $OVS_EXTRA}
+
+- ifconfig "${IFACE}" up
++ ip link set dev "${IFACE}" up
+ ;;
+ OVSIntPort)
+ ovs_vsctl -- --may-exist add-port "${IF_OVS_BRIDGE}"\
+ "${IFACE}" ${IF_OVS_OPTIONS} -- set Interface "${IFACE}"\
+ type=internal ${OVS_EXTRA+-- $OVS_EXTRA}
+
+- ifconfig "${IFACE}" up
++ ip link set dev "${IFACE}" up
+ ;;
+ OVSBond)
+ ovs_vsctl -- --fake-iface add-bond "${IF_OVS_BRIDGE}"\
+ "${IFACE}" ${IF_OVS_BONDS} ${IF_OVS_OPTIONS} \
+ ${OVS_EXTRA+-- $OVS_EXTRA}
+
+- ifconfig "${IFACE}" up
++ ip link set dev "${IFACE}" up
+ for slave in ${IF_OVS_BONDS}
+ do
+- ifconfig "${slave}" up
++ ip link set dev "${slave}" up
+ done
+ ;;
+ OVSTunnel)
+@@ -80,7 +81,8 @@
+ case "${IF_OVS_TYPE}" in
+ OVSBridge)
+ if [ ! -z "${IF_OVS_PORTS}" ]; then
+- ifdown --allow="${IFACE}" ${IF_OVS_PORTS}
++# ifdown --allow="${IFACE}" ${IF_OVS_PORTS}
++ ifdown ${IF_OVS_PORTS}
+ fi
+
+ ovs_vsctl -- --if-exists del-br "${IFACE}"