mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 13:00:05 +08:00
14 lines
256 B
Bash
14 lines
256 B
Bash
#!/bin/sh
|
|
|
|
case "$ACTION" in
|
|
add)
|
|
[ -n "${DEVNAME}" ] && [ "${DEVNAME##usb/lp*}" = "" ] && {
|
|
chmod 660 /dev/"$DEVNAME"
|
|
chgrp lp /dev/"$DEVNAME"
|
|
}
|
|
;;
|
|
remove)
|
|
# device is gone
|
|
;;
|
|
esac
|