#!/bin/sh

case "$ACTION" in
        add)
		[ -n "${DEVNAME}" ] && [ "${DEVNAME##usb/lp*}" = "" ] && {
			chmod 660 /dev/"$DEVNAME"
			chgrp lp /dev/"$DEVNAME"
		}
                ;;
        remove)
                # device is gone
                ;;
esac