Imported Upstream version 2.4.3
This commit is contained in:
commit
26fb71b504
446 changed files with 148951 additions and 0 deletions
17
scripts/hotplug/libhidups.in
Normal file
17
scripts/hotplug/libhidups.in
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This script changes the permissions and ownership of a USB device under
|
||||
# /proc/bus/usb to grant access to this device to users in the nut group.
|
||||
#
|
||||
# Ownership is set to root.@RUN_AS_GROUP@, permissions are set to 0664.
|
||||
#
|
||||
# Arguments :
|
||||
# -----------
|
||||
# ACTION=[add|remove]
|
||||
# DEVICE=/proc/bus/usb/BBB/DDD
|
||||
# TYPE=usb
|
||||
|
||||
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
|
||||
chown root:@RUN_AS_GROUP@ "$DEVICE"
|
||||
chmod 0664 "$DEVICE"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue