]> git.proxmox.com Git - systemd.git/commitdiff
Install a dpkg file trigger for /lib/udev/hwdb.d
authorMichael Biebl <biebl@debian.org>
Thu, 18 Jul 2013 19:20:01 +0000 (21:20 +0200)
committerMichael Biebl <biebl@debian.org>
Thu, 18 Jul 2013 19:22:01 +0000 (21:22 +0200)
Run udevadm hwdb --update automatically whenever a packages drops a
file in that directory.

debian/udev.postinst
debian/udev.triggers [new file with mode: 0644]

index f7f124eade3589cce99755a218d340564f79d743..c5971eb6c6ccb3e0df5f26783cb17ea09ef93166 100644 (file)
@@ -213,6 +213,11 @@ case "$1" in
     abort-upgrade|abort-remove|abort-deconfigure)
     ;;
 
+    triggered)
+    update_hwdb
+    exit 0
+    ;;
+
     interfaces)
     write_interfaces_rules
     ;;
diff --git a/debian/udev.triggers b/debian/udev.triggers
new file mode 100644 (file)
index 0000000..79d7ec6
--- /dev/null
@@ -0,0 +1 @@
+interest /lib/udev/hwdb.d