View Single Post
Old 03-09-2012, 05:47 PM   #41
FDD
Connoisseur
FDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheeseFDD can extract oil from cheese
 
Posts: 62
Karma: 1114
Join Date: Jan 2012
Device: Onyx Boox M92
Quote:
Originally Posted by tuxor View Post
When connecting to my M92 via g_serial over USB everything works fine. But as soon as I log out by typing "exit" in the remote console, I have to remove the "g_serial.ko" module on M92 and insmod it again in order to login again. Is this intended? Any way around this?
There should be no need to remove and insert back the module, just run again the start script, because putty exec's the shell, so it is not running anymore when you logout. I didn't feel confortable running putty in a background loop, let alone changing the inittab, because having it running could prevent you from removing the module and I thought it was simpler this way. IMHO a script that runs getty, sleeps 5 seconds and loops is safe, as long as you kill it when you don't need the serial anymore.
FDD is offline   Reply With Quote