Today I finally got a couple of USB 1-wire dongles so naturally this evening I'm installing the latest owfs. :-)
I followed Peter Kropf's advice for the hot plug script: #!/bin/bash # # setup a usb 1-wire controller to allow access from users in # the owfs group. GROUP=owfs if [ "$ACTION" = "add" ] && [ -f "$DEVICE" ] then # check if $GROUP really exists if getent group $GROUP > /dev/null; then chmod 660 "$DEVICE" chown root.$GROUP "$DEVICE" fi # remove the kernel driver so that we can control it from user # land if /sbin/lsmod | grep ds9490r > /dev/null 2>&1; then /sbin/rmmod ds9490r fi fi and indeed the /proc entry has group owfs after that. But I don't understand why you want the rmmod? It seems to work just as well if I comment out those lines and leave the module loaded. This also does not change the permission of the mounted fuse filesystem. How do I do that? I would like to have group rw permission for /mnt/ow0 but right now only root can do anything, even though the permissions look like this: drwxr-xr-x 3 root root 1 Jul 12 22:35 /mnt/ow0 I have a little experience with scripts for hot-plugging network-like interfaces, for example when I plug in my Zaurus to the USB cradle, the network interface usb0 is created by the usblan module and then /etc/init.d/net.usb0 is called to configure it; but net.usb0 is a generic network config script which gets the configuration info from /etc/conf.d/net. So I imagine we can do something similar for owfs - there can be an /etc/init.d/ow.usb0 which takes care of mounting /mnt/ow0 and starting owhttpd etc., with a conf file elsewhere to disable some of the services if necessary. Is anybody working on a Gentoo ebuild yet? ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers