1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/misc/openhantek/pkg-message
Yuri Victorovich b050aab6c9 misc/openhantek: Cleanup pkg-message
PR:		242168
Submitted by:	Zane C. Bowers-Hadley <vvelox@vvelox.net>
2019-11-23 05:36:23 +00:00

39 lines
1.0 KiB
Plaintext

[
{ type: install
message: <<EOM
You installed OpenHantek: the client for Hantek PC-oscilloscope.
In order for OpenHantek to work you need:
1. Have a compatible device: DSO-6022, DSO-2020, etc.
2. Make sure that your USB device has permissions for your user.
You can achieve this by adding records like this to your
/etc/devd.conf:
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x04b4";
match "product" "0x6022";
action "/usr/sbin/chown {your-user} /dev/usb/`echo $cdev | sed s/ugen//`.*";
};
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x04b5";
match "product" "0x6022";
action "/usr/sbin/chown {your-user} /dev/usb/`echo $cdev | sed s/ugen//`.*";
};
The "action" above doesn't use $device-name due to:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242111
Also please note that devices like this have two vendor/product id
combinations, before and after loading the firmware, hence two
commands above.
EOM
}
]