debian/update-udev-triggers: Ignore errors on udevadm trigger

These are not fatal for package installation and rebuild postinst script
This commit is contained in:
Marco Trevisan (Treviño)
2021-10-28 18:27:52 +02:00
parent 7461f18466
commit e7b6cfec6d
2 changed files with 230 additions and 230 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ while IFS= read -r line; do
if [[ $line =~ ^usb:v([A-Fa-f0-9]{4})p([A-Fa-f0-9]{4}) ]]; then
vendor="$(echo "${BASH_REMATCH[1]}" | tr '[:upper:]' '[:lower:]')"
product="$(echo "${BASH_REMATCH[2]}" | tr '[:upper:]' '[:lower:]')"
commands_lines+=("\tudevadm trigger --action=add --attr-match=idVendor=$vendor --attr-match=idProduct=$product")
commands_lines+=("\tudevadm trigger --action=add --attr-match=idVendor=$vendor --attr-match=idProduct=$product || true")
fi
done < "$autosuspend_file"