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