Skip to content

Instantly share code, notes, and snippets.

@wilensky
Last active August 7, 2016 10:50
Show Gist options
  • Save wilensky/e8c334b4c3ac64aff4c5553167106f54 to your computer and use it in GitHub Desktop.
Save wilensky/e8c334b4c3ac64aff4c5553167106f54 to your computer and use it in GitHub Desktop.
Tomato firmware hotplug script for HP LaserJet P1006 printer
# Printer identity needs to be read separately by another hotplug script which prints id of plugged hardware
if [ $PRODUCT = "3f0/3e17/100" ]; then # `3f0/3e17/100` - printer identity
if [ $ACTION = "add" ]; then
sleep 1
cat /jffs/sihpP1006.dl > /dev/usb/lp0
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment