Re: [SLUG] Cellular Data cards Linux

From: Chuck Hast (wchast@gmail.com)
Date: Fri Jul 13 2007 - 06:57:55 EDT


On 7/13/07, Chuck Hast <wchast@gmail.com> wrote:
> Mason, SLUG,
> I found a web site that had the info on how to set the card up:
> http://andy.hillhome.org/blog/2007/02/05/using-a-umts-card-on-opensuse-102/
>
> Quoting from the web page:
>
> To make the card "just work" when it is plugged in, we need to create
> a udev rule. To do that, create
> /etc/udev/rules.d/51-3g-datacards.rules containing the following:
>
> # Rules for hotplugging Cardbus 3G datacards
> SUBSYSTEM=="usb", SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6701",
> RUN="/etc/cingularcard.sh"
> KERNEL=="ttyUSB0", SYMLINK="modem", GROUP="dialout", MODE="0660"
> KERNEL=="ttyUSB2", GROUP="dialout" MODE="0660"
>
>
> I created that file and then the following one, again from the web page:
>
> We also need to create /etc/cingularcard.sh, as follows:
>
> #!/bin/bash
> /sbin/modprobe -r usbserial
> /sbin/modprobe usbserial vendor=0x0af0 product=0x6701
>
>
> I did as it indicated, but when the script runs on card insertion I
> get the following
> in messages:
>
> Jul 13 06:47:32 RF-mobile kernel: usb 6-1: Product: Globetrotter HSDPA Modem
> Jul 13 06:47:32 RF-mobile kernel: usb 6-1: Manufacturer: Option N.V.
> Jul 13 06:47:32 RF-mobile kernel: usb 6-1: SerialNumber: Serial Number
> Jul 13 06:47:32 RF-mobile kernel: usb 6-1: configuration #1 chosen from 1 choice
> Jul 13 06:47:32 RF-mobile udevd-event[5825]: run_program: exec of
> program '/etc/cingularcard.sh' failed
> Jul 13 06:47:32 RF-mobile udevd-event[5837]: run_program: exec of
> program '/etc/cingularcard.sh' failed
> Jul 13 06:47:32 RF-mobile udevd-event[5842]: run_program: exec of
> program '/etc/cingularcard.sh' failed
> Jul 13 06:47:32 RF-mobile udevd-event[5845]: run_program: exec of
> program '/etc/cingularcard.sh' failed
>
> I noticed that the last file was not set to executable, I did so and
> ran it, then
> loaded the modem and the other file ran ok though it stll was unable to execute
> the .sh file. That appears to be where the problem it. when the udev file calls
> the cingulacard.sh it fails. Again I can execute it manually just fine.
>
Is there a way to manually run the udev script like I can the cingularcard.sh
script?

-- 
Chuck Hast  -- KP4DJT --
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:58:31 EDT