Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions debian/fastrpc-support.postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
set -e

#DEBHELPER#

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would perhaps be nice to underline that this needs to be before the snippet below

(FYI, this branch needs to land after a rebase/merge on top of debian/latest, otherwise dh-sequence-installsysusers is missing. – Cc: Shoudi Li (@shoudil))


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