diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-31 12:24:06 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-31 12:24:06 +0000 |
commit | 9488b0fef7aaac4a6f7e691b4a68f3d149e81858 (patch) | |
tree | 16d5a339fd811dba3c629e8c8f30d3a3b7a264f8 /lib/network | |
parent | 488f8529964f9e995fc1d251e06bc364447d2db7 (diff) | |
download | drakx-net-9488b0fef7aaac4a6f7e691b4a68f3d149e81858.tar drakx-net-9488b0fef7aaac4a6f7e691b4a68f3d149e81858.tar.gz drakx-net-9488b0fef7aaac4a6f7e691b4a68f3d149e81858.tar.bz2 drakx-net-9488b0fef7aaac4a6f7e691b4a68f3d149e81858.tar.xz drakx-net-9488b0fef7aaac4a6f7e691b4a68f3d149e81858.zip |
zero-pad options to usbserial module
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection/cellular_card.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm index 31429d1..1e15ec6 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -128,8 +128,8 @@ sub prepare_device { modules::load_and_configure($modules_conf, $driver, if_($driver eq 'usbserial', join( ' ', - "vendor=0x" . sprintf("%4x", $self->{device}{vendor}), - "product=0x" . sprintf("%4x", $self->{device}{id})))); + "vendor=0x" . sprintf("%04x", $self->{device}{vendor}), + "product=0x" . sprintf("%04x", $self->{device}{id})))); $modules_conf->write if !ref $::o; sleep 2 if $driver eq 'usbserial'; } |