X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=rhel%2Fetc_init.d_openvswitch;h=9f1506c38697469b96ec81d5d6313e96de287706;hb=932f36ebdb5be9decb8e95befb3acd986c811185;hp=c7543cc5517be88d5e30f0f3a37c6fad53071462;hpb=c434706a374bd44d1274e7bdbee40067a6620b61;p=openvswitch diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index c7543cc5..9f1506c3 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -27,13 +27,10 @@ # Short-Description: Open vSwitch switch ### END INIT INFO -. /usr/share/openvswitch/scripts/ovs-lib.sh || exit 1 +. /usr/share/openvswitch/scripts/ovs-lib || exit 1 test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch start () { - # Allow GRE traffic. - /sbin/iptables -I INPUT -p gre -j ACCEPT - set $ovs_ctl ${1-start} set "$@" --system-id=random if test X"$FORCE_COREFILES" != X; then @@ -48,12 +45,13 @@ start () { if test X"$VSWITCHD_MLOCKALL" != X; then set "$@" --mlockall="$VSWITCHD_MLOCKALL" fi - if test ! -e /var/run/openvswitch.booted; then - touch /var/run/openvswitch.booted - set "$@" --delete-bridges + if test X"$BRCOMPAT" = Xyes; then + set "$@" --brcompat fi "$@" + $ovs_ctl --protocol=gre enable-protocol + touch /var/lock/subsys/openvswitch }