A file check malformed on if statement on 'install_bonding_driver' function In RHEL 6.
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
