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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content