> 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
Thanks for the link Steve, and I think I now understand how to write the udev rule with the RUN+= assignment. What I don't understand is what to put in the script that I call since it has to return very quickly or detach itself. Do I just need to launch mgetty if the udev ACTION=add or kill mgetty if ACTION=remove? Presumably mgetty will still call ppp once a call comes in, and the rest of the dial-up settings remain the same. Tom