summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/dependencies/resmgr/desktopdev
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-10-21 20:16:07 +0200
committeralbator <albator@arcadia.vtf>2011-10-21 20:16:07 +0200
commit7a0adf35896618a7570e425941fc1b74c54def47 (patch)
tree16dab9d8bfbd93575440f357c70907cbb5480980 /mandriva/2010.2/dependencies/resmgr/desktopdev
parentcd71be65dc30c8007ec54becdf6c50260ed8e908 (diff)
parenta8707e2a9f22d082cecb8ea6079175076f983c55 (diff)
downloadtde-packaging-7a0adf35896618a7570e425941fc1b74c54def47.tar.gz
tde-packaging-7a0adf35896618a7570e425941fc1b74c54def47.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'mandriva/2010.2/dependencies/resmgr/desktopdev')
-rw-r--r--mandriva/2010.2/dependencies/resmgr/desktopdev17
1 files changed, 17 insertions, 0 deletions
diff --git a/mandriva/2010.2/dependencies/resmgr/desktopdev b/mandriva/2010.2/dependencies/resmgr/desktopdev
new file mode 100644
index 000000000..3a66e2cf8
--- /dev/null
+++ b/mandriva/2010.2/dependencies/resmgr/desktopdev
@@ -0,0 +1,17 @@
+#!/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.
+
+# Mandriva uses udev, you don't have to create a usermap
+# If you want this script to be called, you have to create an udev
+# rule in /etc/udev/rules.d/ that starts it, using
+# RUN+="/etc/udev/agents.d/usb/desktopdev"
+
+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