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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1604890

Title:
  update-notifier-hp-firmware upstart job doesn't make sense in update-
  notifier

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1604890/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to