debian/update-udev-triggers.sh: Ignore udevadm trigger failures

LP: #1909023
This commit is contained in:
Marco Trevisan (Treviño)
2021-02-22 21:31:39 +01:00
parent 77b9220178
commit f2dac228af
+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"