Integrated 3G connection - CREATE A SCRIPT


Why do I always have to do this on my laptop to detect my integrated 3G connection?

[victorsnk@victorsnk-laptop ~]$ sudo su
[sudo] password for victorsnk: 
Sorry, try again.
[sudo] password for victorsnk: 
[victorsnk-laptop victorsnk]# modprobe option
[victorsnk-laptop victorsnk]# echo "03f0 521d" > /sys/bus/usb-serial/drivers/option1/new_id
[victorsnk-laptop victorsnk]# usb_modeswitch -H -v 03f0 -p 521d -s 10
Note: No target parameter given; success check limited
Look for default devices ...
 Found devices in default mode (1)
Access device 002 on bus 002
Get the current device configuration ...
Current configuration number is 2
Use interface number 0
 with class 2
Send old Huawei control message ...

Check for mode switch (max. 10 times, once per second) ...
 Wait for original device to vanish ...
 Original device can't be accessed anymore. Good.
 (For a better success check provide target IDs or class)
 Original device vanished after switching

Mode switch most likely succeeded. Bye!