summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection/cellular_card.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index 57f2111..0fc3fbf 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -76,7 +76,7 @@ sub get_tty_device {
$udev_env{USB_MODEM_INTERFACE} . "/ttyUSB*"));
if ($tty_usb) {
$tty_usb =~ s/ttyUSB//;
- $tty_interface = $tty_usb;
+ $tty_interface = $tty_usb;
}
} else {
# if no usb interface for tty port given, use first one
@@ -84,11 +84,11 @@ sub get_tty_device {
$self->{device}->{pci_bus} . "-" .
($self->{device}->{usb_port} + 1) . ":*");
foreach (@intfs) {
- my $tty_usb = basename(glob_("$_/tty*"));
- if ($tty_usb) {
+ my $tty_usb = basename(glob_("$_/tty*"));
+ if ($tty_usb) {
$tty_usb =~ s/tty[a-zA-Z]*//;
$tty_interface = $tty_usb;
- last;
+ last;
}
}
}