Skip to content

Commit

Permalink
1) Remove dmesg from Raspinfo section of Troubleshooting
Browse files Browse the repository at this point in the history
2) Add dmesg -T (all platforms) to "Boot" section of Troubleshooting
3) add "-T" when creating dmesg for tmp/boot.log on crash

Closes #2084
  • Loading branch information
ghormann committed Dec 29, 2024
1 parent 6ee57a9 commit fa69445
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fppd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static void handleCrash(int s) {
if (crashLog > 1) {
strcat(zName, " settings");
if (crashLog > 2) {
system("dmesg > tmp/boot.log");
system("dmesg -T > tmp/boot.log");
system("journalctl -b -u fppinit -u fppoled -u fpp_postnetwork >> tmp/boot.log");
strcat(zName, " config tmp logs/fppd.log logs/apache2-error.log playlists /etc/fpp");
}
Expand Down
10 changes: 9 additions & 1 deletion www/troubleshoot-commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@
"platforms": [
"all"
]
},
"DMESGDLogs": {
"title": "dmesg",
"description": "",
"cmd": "dmesg -T",
"platforms": [
"all"
]
}
}
},
Expand Down Expand Up @@ -488,7 +496,7 @@
"RPIINFO": {
"title": "RPI Info",
"description": "Raspberry Pi inbuilt info tool",
"cmd": "/bin/raspinfo; rm -f raspinfo.txt",
"cmd": "/bin/raspinfo | sed '/dmesg/q'; rm -f raspinfo.txt",
"platforms": [
"Raspberry Pi"
]
Expand Down

0 comments on commit fa69445

Please sign in to comment.