summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/detect_devices.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 68dc485c2..b84d940af 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -583,6 +583,11 @@ sub is_wireless_interface {
c::isNetDeviceWirelessAware($interface) || -e "/sys/class/net/$interface/wireless";
}
+sub is_bridge_interface {
+ my ($interface) = @_;
+ -f "/sys/class/net/$interface/bridge/bridge_id";
+}
+
sub get_sysfs_device_id_map {
my ($dev_path) = @_;
my $is_usb = -f "$dev_path/bInterfaceNumber";