FreeBSD telldusd port fix for devd script

Hans Petter Selasky hps at selasky.org
Sat Sep 30 19:10:30 UTC 2017


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


More information about the freebsd-ports mailing list