summaryrefslogtreecommitdiffstats
path: root/kcontrol/input/consoleUserPerms
blob: af7e267bd0072cea6f0c54357cb7485c8d134e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

GROUP=plugdev

if [ "${ACTION}" = "add" ]
then
    if getent group $GROUP > /dev/null; then
	N=0
	while [ ! -e $DEVICE ] && [ $N -lt 25 ]; do
		sleep 1
		N=$(expr $N + 1)
	done
	chmod 660 "${DEVICE}"
	chown root:$GROUP "${DEVICE}"
    fi
fi