From 8e44bb11eacc42d2a898d76564be6a1b877959d6 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 10 Jan 2016 21:23:40 -0800 Subject: [PATCH] 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. --- debian/changelog | 3 +++ debian/templates/image.plain.bug/include-model | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index 7576aafbd..f343f1d34 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 23 Jan 2016 11:51:46 +0000 linux (4.3.3-7) unstable; urgency=medium diff --git a/debian/templates/image.plain.bug/include-model b/debian/templates/image.plain.bug/include-model index 60a711266..9c6aedd6a 100644 --- a/debian/templates/image.plain.bug/include-model +++ b/debian/templates/image.plain.bug/include-model @@ -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() {