diff options
author | Ben Pfaff <blp@nicira.com> | 2012-02-03 09:33:47 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-02-03 09:34:44 -0800 |
commit | e31f6c5d1c26e9b86adb6449226b4f08f2c8d7a5 (patch) | |
tree | fbe3d380084fbed2262a0bea02f8c25941b8e50a /rhel/etc_sysconfig_network-scripts_ifup-ovs | |
parent | edcbeb4d420bb71001e460ab4d1b8cfce61eea79 (diff) | |
download | openvswitch-e31f6c5d1c26e9b86adb6449226b4f08f2c8d7a5.tar.gz |
rhel: Simplify ifup-ovs script use of "case".
Suggested-by: "Alexey I. Froloff" <raorn@altlinux.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'rhel/etc_sysconfig_network-scripts_ifup-ovs')
-rwxr-xr-x | rhel/etc_sysconfig_network-scripts_ifup-ovs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs index 18cebc4dd..4773ee427 100755 --- a/rhel/etc_sysconfig_network-scripts_ifup-ovs +++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs @@ -37,11 +37,8 @@ case "$TYPE" in OVSBridge) ovs-vsctl -- --may-exist add-br "$DEVICE" $OVS_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA} if [ "${OVSBOOTPROTO}" = "dhcp" ] && [ -n "${OVSINTF}" ]; then - case ${OVSDHCPINTERFACES} in - ${OVSINTF#ifcfg-} | \ - "${OVSINTF#ifcfg-},"* | \ - *",${OVSINTF#ifcfg-}" | \ - *",${OVSINTF#ifcfg-},"*) + case ,${OVSDHCPINTERFACES}, in + *,${OVSINTF#ifcfg-},*) BOOTPROTO=dhcp ${OTHERSCRIPT} ${CONFIG} ;; esac |