A file check malformed on if statement on 'install_bonding_driver' function In RHEL 6.

Solution In Progress - Updated -

Issue

  • In '/etc/sysconfig/network-scripts/network-functions' line 442 (function install_bonding_driver()) a 'if' statement that checks for the existence of a file does not work as it should be working.
if  -f /sys/class/net/${DEVICE}/bonding/slaves ] && [ $(wc -l < /sys/class/net/${DEVICE}/bonding/slaves) -eq 0 ]; then

Environment

  • Red Hat Enterprise Linux 6
  • initscript

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.