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:
parent
d77feea6da
commit
8e44bb11ea
|
@ -149,6 +149,9 @@ linux (4.3.5-1) UNRELEASED; urgency=medium
|
||||||
(Closes: #812336)
|
(Closes: #812336)
|
||||||
* [s390x] udeb: include btrfs-modules (Closes: #812340)
|
* [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
|
-- Ben Hutchings <ben@decadent.org.uk> Sat, 23 Jan 2016 11:51:46 +0000
|
||||||
|
|
||||||
linux (4.3.3-7) unstable; urgency=medium
|
linux (4.3.3-7) unstable; urgency=medium
|
||||||
|
|
|
@ -39,6 +39,11 @@ grep_model() {
|
||||||
false
|
false
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Device Tree model
|
||||||
|
if [ -r /proc/device-tree/model ]; then
|
||||||
|
echo "Device Tree model:" $(cat /proc/device-tree/model)
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
add_model() {
|
add_model() {
|
||||||
|
|
Loading…
Reference in New Issue