p910nd.hotplug 256 B

12345678910111213
  1. #!/bin/sh
  2. case "$ACTION" in
  3. add)
  4. [ -n "${DEVNAME}" ] && [ "${DEVNAME##usb/lp*}" = "" ] && {
  5. chmod 660 /dev/"$DEVNAME"
  6. chgrp lp /dev/"$DEVNAME"
  7. }
  8. ;;
  9. remove)
  10. # device is gone
  11. ;;
  12. esac