aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 50aeade5..04fde504 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -450,6 +450,11 @@ is_wireless_device ()
return 1
}
+phy_wireless_device ()
+{
+ cat /sys/class/net/$1/phy80211/name
+}
+
install_bonding_driver ()
{
[ ! -f /sys/class/net/bonding_masters ] && ( modprobe bonding || return 1 )