From 87aefc960557c2fb6fdf9ea4c1ac0e7983f68f68 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:49:53 +0200 Subject: Adding debian version 255.4-1. Signed-off-by: Daniel Baumann --- debian/udev.postinst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 debian/udev.postinst (limited to 'debian/udev.postinst') diff --git a/debian/udev.postinst b/debian/udev.postinst new file mode 100644 index 0000000..9215d3f --- /dev/null +++ b/debian/udev.postinst @@ -0,0 +1,25 @@ +#!/bin/sh + +set -e + +update_hwdb() { + systemd-hwdb --usr update || true +} + +case "$1" in + configure) + # update/create hwdb before we (re)start udev + update_hwdb + + if dpkg --compare-versions "$2" lt-nl "254.3-1~" && [ ! -f /etc/init.d/udev ]; then + update-rc.d udev remove || true + fi + ;; + + triggered) + update_hwdb + exit 0 + ;; +esac + +#DEBHELPER# -- cgit v1.2.3