You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kcontrol/input/consoleUserPerms

17 lines
252 B

#!/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