www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

3G Modem ttyUSB# change

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
DejeroDale



Joined: 12 Mar 2014
Posts: 3

PostPosted: Wed Mar 12, 2014 5:57 pm    Post subject: 3G Modem ttyUSB# change Reply with quote

Hi, I am trying to get 2x sierra wireless modems running on ZeroShell, which I have done - however every time I reboot the system or power is cut the tty number changes and I have to keep going into the gui and selecting a new tty until it connects. Is there a way to manually assign the tty number to a specific modem?
I have heard of doing this using udevadm however I noticed that there is no default rules file under /etc/udev/rules.d/

I am trying this on both the 3.0 release and the 2.0RC3

any help would be great thanks.
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1068

PostPosted: Wed Mar 12, 2014 8:21 pm    Post subject: Reply with quote

The rules are in /lib/udev/rules.d/ but these are read only. You could use a post boot script that change the the modem device automatically.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
DejeroDale



Joined: 12 Mar 2014
Posts: 3

PostPosted: Wed Mar 12, 2014 8:31 pm    Post subject: Reply with quote

fulvio wrote:
The rules are in /lib/udev/rules.d/ but these are read only. You could use a post boot script that change the the modem device automatically.

Regards
Fulvio


Would I not be able to create a udev with a lower number as to load it first?
Would the installed ZS make them writeable? Or do they remain RO?
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1068

PostPosted: Wed Mar 12, 2014 9:23 pm    Post subject: Reply with quote

Zeroshell is on a Read Only filesystem in any case. This is for security reasons.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
DejeroDale



Joined: 12 Mar 2014
Posts: 3

PostPosted: Wed Mar 12, 2014 9:28 pm    Post subject: Reply with quote

So if I was to make a post boot script to make symbolic links in zeroshell, do you have an example of what that may look like?

I understand that I have to find the identification of the modem, then create a new rule or re-write a rule to make a symbolic link to point the modem to a "static tty".

Thanks for the help.
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1068

PostPosted: Wed Mar 12, 2014 9:37 pm    Post subject: Reply with quote

You should try with

ln -s $(ls /dev/ttyUSB? | tail -1) /dev/ttyUSB

in the pre boot script.
After the reboot you have to select the device /dev/ttyUSB as modem.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group