1 2 3 4 5 6
#!/bin/sh [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && { chown root:video "/dev/$DEVNAME" chmod 0660 "/dev/$DEVNAME" }