mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-26 00:31:47 +00:00
armhwinfo: verbose USB logging only when verbose boot is enabled
This commit is contained in:
parent
f0f5e85a45
commit
5df1e4f759
1 changed files with 2 additions and 1 deletions
|
@ -221,7 +221,8 @@ log_hardware_info() {
|
|||
echo -e "\n### dmesg:\n" >>${Log}
|
||||
cat "${TMPFILE}" >>${Log}
|
||||
echo -e "\n### lsusb:" >>${Log}
|
||||
lsusb -v 2>/dev/null >>${Log}
|
||||
[ -f /boot/.verbose ] && USBVERBOSE="-v" || echo "" >>${Log}
|
||||
lsusb ${USBVERBOSE} 2>/dev/null >>${Log}
|
||||
echo -e "\n### lscpu:\n" >>${Log}
|
||||
lscpu >>${Log}
|
||||
echo -e "\n### cpuinfo:\n" >>${Log}
|
||||
|
|
Loading…
Add table
Reference in a new issue