From 040a298c38ee280b757842e2cb2d16fe4532267e Mon Sep 17 00:00:00 2001 From: germeier Date: Mon, 19 Apr 2004 12:22:51 +0000 Subject: oops, really add the hotpluging files to the repository ;-) --- hotplug/libmpio.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 hotplug/libmpio.in (limited to 'hotplug/libmpio.in') diff --git a/hotplug/libmpio.in b/hotplug/libmpio.in new file mode 100755 index 0000000..27c5370 --- /dev/null +++ b/hotplug/libmpio.in @@ -0,0 +1,20 @@ +#!/bin/bash +# +# /etc/hotplug/usb/libmpio +# +# Fix permissions on device file, so +# "normal" users can access the MPIO player + +MPIO_USER=@MPIOUSER@ +MPIO_GROUP=@MPIOGROUP@ +MPIO_PERM=@MPIOPERM@ + +if [ "$ACTION" = "add" ] && + [ "$TYPE" = "usb" ] && + [ -f "${DEVICE}" ] +then + chmod 0000 "$DEVICE" + chown $MPIO_USER "$DEVICE" + chgrp $MPIO_GROUP "$DEVICE" + chmod $MPIO_PERM "$DEVICE" +fi -- cgit v1.2.3