Debian Codegraph @

debian/udev.bug-script

raw
1 #!/bin/bash
2
3 cat <<EOF
4
5 Providing additional information can help diagnose problems with udev.
6 Specifically, this would include a udev database.
7 The data is generated via "udevadm info --export-db".
8 If this information is not relevant for your bug report or you have privacy
9 concerns, please choose no.
10
11 EOF
12
13 yesno "Do you want to provide additional information [Y|n]? " yep
14 [ "$REPLY" = yep ] || exit 0
15
16 # We don’t clean up this directory because there is no way to know when
17 # reportbug finished running, and reportbug needs the files around.
18 # Given that those are just a couple of kilobytes in size and people
19 # generally don’t file a lot of bugs, I don’t think it’s a big deal.
20 DIR=$(mktemp -d)
21
22 echo "-- BEGIN ATTACHMENTS --" >&3
23
24 udevadm info --export-db >$DIR/udev-database.txt
25 echo "$DIR/udev-database.txt" >&3
26
27 echo "-- END ATTACHMENTS --" >&3