Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2017 21:07:55 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        johan@stromnet.se, ports@FreeBSD.org
Subject:   FreeBSD telldusd port fix for devd script
Message-ID:  <27b89374-5513-ed45-6ec1-58a2c1156543@selasky.org>

next in thread | raw e-mail | index | archive | help
Hi Johan,

The following devd script is not fully correct.

> --- tdadmin/freebsd-devd-tellstick.conf	2014-04-06 22:40:11.000000000 +0200
> +++ tdadmin/freebsd-devd-tellstick.conf	2014-04-06 20:37:50.501751596 +0200
> @@ -0,0 +1,12 @@
> +attach 10 {
> +	device-name "uftdi[0-9]+";
> +	match "vendor" "0x1781";
> +	match "product" "0x0c30";
> +
> +	action "chgrp dialer /dev/ugen$port.$devaddr; chmod 660 /dev/ugen$port.$devaddr;
> +		@CMAKE_INSTALL_PREFIX@/sbin/tdadmin --pid $product --vid $vendor --serial $sernum controller connect";
> +};

It should be:

notify 10 {
         match "system" "USB";
         match "subsystem" "DEVICE";
         match "type" "ATTACH";
         match "vendor" "0x1781";
         match "product" "0x0c30";
	action "chgrp dialer /dev/$cdev; chmod 660 /dev/$cdev 
@CMAKE_INSTALL_PREFIX@/sbin/tdadmin --pid $product --vid $vendor 
--serial $sernum controller connect";
}

Can you test and update the port in FreeBSD ?

Thank you!

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27b89374-5513-ed45-6ec1-58a2c1156543>