aboutsummaryrefslogtreecommitdiff
path: root/systemd-zfs-partition-backup/udev
diff options
context:
space:
mode:
authorMax Christian Pohle2020-07-11 14:11:07 +0200
committerMax Christian Pohle2020-07-11 14:11:07 +0200
commit76e0da0ef07a921e27b12a447692d1e952d922f4 (patch)
tree656932887f776bb0f838ce86ab8d4d16f430b097 /systemd-zfs-partition-backup/udev
parentd9804a00d1d2164f5c25d743d18bd4f6a8776f31 (diff)
downloadzfs-bash-tools-76e0da0ef07a921e27b12a447692d1e952d922f4.tar.bz2
zfs-bash-tools-76e0da0ef07a921e27b12a447692d1e952d922f4.zip
Spring cleaning
Diffstat (limited to 'systemd-zfs-partition-backup/udev')
-rw-r--r--systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules b/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules
new file mode 100644
index 0000000..e17bba0
--- /dev/null
+++ b/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules
@@ -0,0 +1,2 @@
1ACTION=="add", ENV{ID_PART_ENTRY_NUMBER}=="[0-9]", ENV{SYSTEMD_WANTS}="max-backup@$env{ID_SERIAL}\\x2dpart$env{ID_PART_ENTRY_NUMBER}.service"
2LABEL="External disk drive backup"
..