diff options
author | Bill Nottingham <notting@redhat.com> | 2006-08-01 17:37:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-08-01 17:37:16 +0000 |
commit | a03d315834a5a688bf35fecad1a19f1b61634641 (patch) | |
tree | 3d4a06026849a636bd601a29316e11145e62b81b /sysconfig/network-scripts/network-functions | |
parent | 1cedb2c5ff5e4bb4372de3fc81a1737559cf1915 (diff) | |
download | initscripts-a03d315834a5a688bf35fecad1a19f1b61634641.tar initscripts-a03d315834a5a688bf35fecad1a19f1b61634641.tar.gz initscripts-a03d315834a5a688bf35fecad1a19f1b61634641.tar.bz2 initscripts-a03d315834a5a688bf35fecad1a19f1b61634641.tar.xz initscripts-a03d315834a5a688bf35fecad1a19f1b61634641.zip |
make test for bonding device a function
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index e60d704b..dacf1d22 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -380,6 +380,13 @@ is_wireless_device () return 1 } +is_bonding_device () +{ + [ "${TYPE}" = "Bonding" ] && return 0 + ethtool -i $1 2>/dev/null | grep -q "driver: bonding" && return 0 + return 1 +} + # Mainframe devices: configure_ccwgroup_device () { |