blob: 10d2079d5a2b64f6cb54bd9706382f6c52eb5049 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
getent group usbtmc || groupadd -r usbtmc
udevadm control --reload-rules 2>/dev/null
cat << EOF
===>
===> Please re-login to renew environment variable.
===> If USB-based devices do not run properly, check the following:
===> # gpasswd -a <user> usbtmc
===> # rmmod usbtmc
===> refs: http://digital.ni.com/public.nsf/allkb/A10090850FF0887A86257926007A7E96
===> https://github.com/python-ivi/python-usbtmc#configuring-udev
===>
EOF
}
post_remove() {
groupdel usbtmc >/dev/null 2>&1 || true
}
|