Include Device Tree model in reportbug script

It would be nice to include the Device Tree model in the reportbug
output.  On DT based platforms, /proc/cpuinfo only includes quite
generic information.

Please note that the strange "echo ... $(cat ..)" construct is
intentional.  'cat /proc/device-tree/model' leads to a strange
character at the end because there's no newline and using echo
gets rid of it.
This commit is contained in:
Martin Michlmayr 2016-01-10 21:23:40 -08:00 committed by Ben Hutchings
parent d77feea6da
commit 8e44bb11ea
2 changed files with 8 additions and 0 deletions

3
debian/changelog vendored
View File

@ -149,6 +149,9 @@ linux (4.3.5-1) UNRELEASED; urgency=medium
(Closes: #812336)
* [s390x] udeb: include btrfs-modules (Closes: #812340)
[ Martin Michlmayr ]
* Include Device Tree model in reportbug script
-- Ben Hutchings <ben@decadent.org.uk> Sat, 23 Jan 2016 11:51:46 +0000
linux (4.3.3-7) unstable; urgency=medium

View File

@ -39,6 +39,11 @@ grep_model() {
false
;;
esac
# Device Tree model
if [ -r /proc/device-tree/model ]; then
echo "Device Tree model:" $(cat /proc/device-tree/model)
fi
}
add_model() {