X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=rhel%2Fetc_init.d_openvswitch;h=ad7579cd2751fa9bc0712be3680f94ad4b6fd6dd;hb=149ff68ac91fe4b398a691a92c07b7ba315f5275;hp=6f7fe6955ec0d5e9c3ef46180f64bed5b2188f93;hpb=a281173e19918379832ec535b18aa2af58832efb;p=openvswitch diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index 6f7fe695..ad7579cd 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -5,7 +5,7 @@ # chkconfig: 2345 09 91 # description: Manage Open vSwitch kernel modules and user-space daemons -# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc. +# Copyright (C) 2009, 2010, 2011 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -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,8 +45,14 @@ start () { if test X"$VSWITCHD_MLOCKALL" != X; then set "$@" --mlockall="$VSWITCHD_MLOCKALL" fi + if test X"$BRCOMPAT" = Xyes; then + set "$@" --brcompat + fi + set "$@" $OVS_CTL_OPTS "$@" + $ovs_ctl --protocol=gre enable-protocol + touch /var/lock/subsys/openvswitch }