summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-01 06:19:01 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-01 06:19:01 +0000
commitca03fd38c046b250374502d004393bc278806731 (patch)
tree3bef9a503d53bdc8b84ef3d476775132b3b9123a /perl-install/detect_devices.pm
parent62a7841e3c62f2326c62131424a7ee59ae39db16 (diff)
downloaddrakx-ca03fd38c046b250374502d004393bc278806731.tar
drakx-ca03fd38c046b250374502d004393bc278806731.tar.gz
drakx-ca03fd38c046b250374502d004393bc278806731.tar.bz2
drakx-ca03fd38c046b250374502d004393bc278806731.tar.xz
drakx-ca03fd38c046b250374502d004393bc278806731.zip
add is_bridge_interface
Diffstat (limited to 'perl-install/detect_devices.pm')
-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";