Commit 644c6aa1 authored by nicoo's avatar nicoo

debian/libu2f-udev.postinst: Do not display udevadm commands

Closes: #921818
parent 06a6142f
......@@ -8,12 +8,7 @@ set -u -o pipefail
# Reload rules
udevadm control --reload
# Deal with already-plugged-in devices
run() {
echo "$@" >&2
"$@"
}
# Deal with already-plugged-in device
while IFS='' read -r line || [[ -n "$line" ]]; do
# Skip comment
if [[ "$line" == \#* ]] || [[ -z "$line" ]] ||
......@@ -29,7 +24,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
continue
fi
run udevadm trigger -s hidraw -a "$idVendor" -a "$idProduct" -v
udevadm trigger -s hidraw -a "$idVendor" -a "$idProduct" -v
done < /lib/udev/rules.d/70-u2f.rules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment