diff options
author | Tim Williams <tmw@autotrain.org> | 2011-10-14 13:51:18 +0100 |
---|---|---|
committer | Tim Williams <tmw@autotrain.org> | 2011-10-14 13:51:18 +0100 |
commit | ec2515f058c60d2478a549f58376db628ba556b9 (patch) | |
tree | aefbde1b807005611b397e01ebc5782c7d27ff91 /mandriva/2010.2/dependencies/resmgr/desktopdev | |
parent | bba295da1161579c6fe734680c827e50a3585131 (diff) | |
download | tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.tar.gz tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.zip |
Initial commit of the Mandriva patches and spec files.
This includes the main dependencies and core packages, but very little else.
Diffstat (limited to 'mandriva/2010.2/dependencies/resmgr/desktopdev')
-rw-r--r-- | mandriva/2010.2/dependencies/resmgr/desktopdev | 17 |
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 |