aboutsummaryrefslogtreecommitdiffstats
path: root/debug.csh
diff options
context:
space:
mode:
authorAshish Samant <ashish.samant@oracle.com>2014-10-29 17:47:29 -0700
committerLukas Nykryn <lnykryn@redhat.com>2014-12-08 13:28:14 +0100
commit30ecd15eb772de10f9c2f94cc9bad4eac5439d24 (patch)
tree196f663fdc7b90461dcac561e833f54c5a560b2c /debug.csh
parent14384d32551f2b0cc83566f602ad3ceb0b02094e (diff)
downloadinitscripts-30ecd15eb772de10f9c2f94cc9bad4eac5439d24.tar
initscripts-30ecd15eb772de10f9c2f94cc9bad4eac5439d24.tar.gz
initscripts-30ecd15eb772de10f9c2f94cc9bad4eac5439d24.tar.bz2
initscripts-30ecd15eb772de10f9c2f94cc9bad4eac5439d24.tar.xz
initscripts-30ecd15eb772de10f9c2f94cc9bad4eac5439d24.zip
improve_check_for_bond_master_in_install_bonding_driver
The current grep check (fgrep -sqx) in install_bonding_driver, to determine whether bond master exists, fails when there are multiple bond masters. The fix assumes that multiple bond masters are on different lines in the file "/sys/class/net/bonding_masters", while they are in fact on the same line. Since fgrep -sqx checks for the entire line,it will never match any one bond master within the line and always fail if there are multiple bonds. This patch improves the check by creating a new function, bond_master_exists() to handle this and other conditions. Orabug: 19897586 Signed-off-by: Ashish Samant <ashish.samant@oracle.com> Signed-off-by: John Haxby <john.haxby@oracle.com> Acked-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Diffstat (limited to 'debug.csh')
0 files changed, 0 insertions, 0 deletions