summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHerton Ronaldo Krzesinski <herton@mandriva.com.br>2009-11-12 20:48:07 +0000
committerHerton Ronaldo Krzesinski <herton@mandriva.com.br>2009-11-12 20:48:07 +0000
commit4f22e156b24ef69cc5ac3f60103b1707c78233af (patch)
tree0521eb0408e63161b444f18760a9aaa78fc9aa76 /lib
parentd613c91351582dd862d36e9645cdb2cd5b7bd8f8 (diff)
downloaddrakx-net-4f22e156b24ef69cc5ac3f60103b1707c78233af.tar
drakx-net-4f22e156b24ef69cc5ac3f60103b1707c78233af.tar.gz
drakx-net-4f22e156b24ef69cc5ac3f60103b1707c78233af.tar.bz2
drakx-net-4f22e156b24ef69cc5ac3f60103b1707c78233af.tar.xz
drakx-net-4f22e156b24ef69cc5ac3f60103b1707c78233af.zip
Cosmetic: use USB_MODEM_INTERFACE instead of USB_INTERFACE environment
variable name for support of udev-supplied 3g modem parameters
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/cellular_card.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index 58977f0..57f2111 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -67,13 +67,13 @@ sub get_tty_device {
my $tty_interface = 0;
my %udev_env = map { if_(/^([^=]*)=(.*)$/, $1 => $2) } chomp_(run_program::get_stdout("udevadm info --query=property --path=$self->{device}{sysfs_device}"));
- if ($udev_env{USB_INTERFACE}) {
+ if ($udev_env{USB_MODEM_INTERFACE}) {
my $dev_sys_path = $self->{device}->{sysfs_device};
my $cfg = chomp_(cat_($dev_sys_path . "/bConfigurationValue"));
my $tty_usb = basename(glob_("$dev_sys_path/" .
$self->{device}->{pci_bus} . "-" .
($self->{device}->{usb_port} + 1) . ":$cfg." .
- $udev_env{USB_INTERFACE} . "/ttyUSB*"));
+ $udev_env{USB_MODEM_INTERFACE} . "/ttyUSB*"));
if ($tty_usb) {
$tty_usb =~ s/ttyUSB//;
$tty_interface = $tty_usb;