From e1209189b2f8023a08e767cd176dfff5bbc0fb0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Blanc?= Date: Fri, 28 Aug 2026 10:40:04 +0200 Subject: [PATCH] debian: Add udev rule triggering in postinst Most users expect their fastrpc use cases to work after installation of fastrpc-support without retriggered udev rules, so we trigger the fastrpc udev rules in the postinst script (dh_installudev doesn't do it). --- debian/fastrpc-support.postinst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/fastrpc-support.postinst diff --git a/debian/fastrpc-support.postinst b/debian/fastrpc-support.postinst new file mode 100644 index 0000000..82332ac --- /dev/null +++ b/debian/fastrpc-support.postinst @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +if [ "$1" = "configure" ] && [ -z "$DPKG_ROOT" ]; then + if which -s udevadm ; then + for f in $(find /dev -name 'fastrpc-*' -maxdepth 1); do + udevadm trigger --subsystem-match=misc --action=add --name-match="$f" || true + done + udevadm trigger --subsystem-match=dma_heap --action=add || true + fi +fi + +exit 0