Setting up 3g card on each boot

Hello,

I am a newbie (also a noob) here. I have a local 3G data card which i need to set up on each boot using terminal. I have searched a HELL LOT and found a way to do it. The following are the commands to be run :


sudo /sbin/depmod
sudo /sbin/modprobe usbserial vendor=0x1c9e product=0x9e00
sudo wvdialconf
sudo wvdial

My question is, is there any way to automate this process? and exit silently if any error occurs in this process?

(sorry if i sound funny :P)

Will be VERY THANKFUL if u help and also, in return, can help you in any graphical design kinda work ( nothing comes free :wink: )

You can try to put those statements into* /etc/init.d/boot.local* and see if it helps. It could be that this runs to early in the whole startup sequence (direct after boot and before the processes are started to go to the wanted runlevel).

In that case move them to /etc/init.d/after.local which is run as last before reaching the wanted runlevel.

I guess (but I am not sure) that the first two of your statements are OK in boot.local, but I a not sure if the last two aren’t to early then. Better try it and when all works to satisfaction in *boot.local *then keep them there (as early as possible).

Of course you should remove the sudo’s from them. Those files are already done as root.

WORKS! :smiley: thank you very much! just a pm if u need any design work :wink: i owe u :slight_smile:

You are welcome. And I do not need any design work. That is also not the way it works here. Everybody here tries to help others. And the others, when gaining experience will pay back in the future by helping also. Or by doing other things for the community like spreading the word that Linux is wonderfull ad that openSUSE is a good distribution.

Hey,

One more question. How to make it run after i boot after hybernation ?