summaryrefslogtreecommitdiff
blob: 19645a465bc4efdbe98b4b49960799b458b797f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# This adds a USB device to the "desktop usb" group.
# You just need to create an entry "desktopdev ..." in a usermap file
# and it will be picked up automatically.

if [ -x /sbin/resmgr ]; then
	if [ "${ACTION}" = "add" ]; then
		/sbin/resmgr ${ACTION} ${DEVICE} desktop usb && exit 0
	else
		/sbin/resmgr ${ACTION} ${DEVICE} desktop && exit 0
	fi
fi