X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=rhel%2Fetc_init.d_openvswitch;h=5501d188156b2f61ce5559f99581567758438480;hb=98c50f96801d3159aad2de02407305463c68f51a;hp=c7543cc5517be88d5e30f0f3a37c6fad53071462;hpb=c434706a374bd44d1274e7bdbee40067a6620b61;p=openvswitch diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index c7543cc5..5501d188 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -31,9 +31,6 @@ 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,10 @@ 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 - fi "$@" + $ovs_ctl --protocol=gre enable-protocol + touch /var/lock/subsys/openvswitch }