Archived
16 lines
734 B
Plaintext
16 lines
734 B
Plaintext
# ---------------------------------------------------------------------------
|
|
# Run a script (using a systemd-service) after plugin of an usb-stick.
|
|
#
|
|
# Running the script directly fails, since udev only allows short-running scripts.
|
|
#
|
|
# Author: Bernhard Bablok
|
|
# License: GPL3
|
|
#
|
|
# Website: https://github.com/bablokb/pi-imgtank
|
|
#
|
|
# ---------------------------------------------------------------------------
|
|
|
|
#KERNEL=="sd?", SUBSYSTEMS=="usb", ACTION=="add", RUN+="/bin/systemctl --no-block start copy_img2@$kernel.service"
|
|
KERNEL=="sd[a-z]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/bin/systemctl --no-block start copy_img2@$kernel.service"
|
|
#KERNEL=="sd[a-z]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/usr/local/bin/trigger.sh"
|