Comment 2 for bug 1604890

Revision history for this message
Martin Pitt (pitti) wrote : Re: update-notifier-hp-firmware upstart job doesn't make sense in update-notifier

Untested sketch: Add an udev rule like
    ACTION=="add", SUBSYSTEMS=="usb", ENV{ID_VENDOR_ID}=="XXXX", ENV{ID_MODEL_ID}=="YYYY", ENV{SYSTEMD_USER_WANTS}+="hp-firmware.service"

and add a /usr/lib/systemd/user/hp-firmware.service whose ExecStart= calls
/usr/bin/hp-plugin-ubuntu if necessary. Note that you probably need some shell commands there, use

  ExecStart=/bin/sh -ec 'shell code here; \
      more shell code there'

for that.