Quote:
Originally Posted by tuxor
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.