On Mon, 2010-03-29 at 11:39 +1300, Tom Munro Glass wrote: > On Mon, 29 Mar 2010 11:25:12 Solor Vox wrote: > > I'd suggest using a udev rule that runs simple script to enable/disable > > your tty. All you'd need to do is match your modem in a udev rule and > > call a script to change your inittab. > > > > That way it only runs if/when the modem is plugged-in. > > > > Cheers, > > sV > > > This sounds like a good solution - could you possibly give me a pointer on > how > to write the udev rule, because I haven't done this before? When the modem is > plugged in the device is /dev/ttyACM0, and the driver module is cdc_acm. You need the device ID - lsusb to list.
http://www.reactivated.net/writing_udev_rules.html > > Will this run as root, because the script would need to patch /etc/inittab > and > then call 'telinit q'? No... the udev rule is instead of, not to enable inittab. If you really need the always up testing functionality, then maybe look at DJB's daemon tools. > > Tom I can't believe I've just recommended some of Dan's software. Off for a lie down! Cheers, Steve -- Steve Holdoway <[email protected]> http://www.greengecko.co.nz MSN: [email protected] GPG Fingerprint = B337 828D 03E1 4F11 CB90 853C C8AB AF04 EF68 52E0
signature.asc
Description: This is a digitally signed message part
