Hi,
I've attached a patch for irattach in irda-utils-0.9.15pre1. The
major problems we've solved, was making it possible to restart
irattach and being able to rmmod the irtty and irda modules after
irattach exits.
Note that we had to change the command-line options since having <dev>
first caused some problems with getopt(). New usage is:
irattach [-d dongle] [-s] [-v] [-h] <dev>
2002-04-08 Ronny Arild <[EMAIL PROTECTED]>
Christer Hoel <[EMAIL PROTECTED]>
* Added clean_exit(), to handle premature exits
* Set serial device back to initial state in cleanup()
* Close socket after use in modify_flags()
* Added print_usage(), which also prints a list of supported
dongles
* Parse options with getopt() before fork_now(), this means
* that the new usage is:
irattach [-d dongle] [-s] [-v] [-h] <dev>
* New option "-h" (print usage)
* Incorrect option(s) gives an error message
* Use pause() instead of sleep(2) in forever loop
Since we've only tested the "-s" option, it would be nice if somebody
tested that we haven't messed up "-d dongle".
--
Ronny H Arild - <[EMAIL PROTECTED]>
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda