Add systeminfo menu option

This commit is contained in:
alex-nitrokey 2020-06-24 10:07:36 +02:00
parent 05c854753c
commit c07f3b7f7c
No known key found for this signature in database
GPG Key ID: A8853020E8EE6FBA

View File

@ -233,6 +233,7 @@ while true; do
'c' ' Change configuration settings -->' \
'f' ' Flash/Update the BIOS -->' \
'G' ' GPG Options -->' \
'S' ' Systeminfo' \
'F' ' OEM Factory Reset -->' \
'x' ' Exit to recovery shell' \
'r' ' <-- Return to main menu' \
@ -374,6 +375,12 @@ while true; do
continue
fi
if [ "$totp_confirm" = "S" ]; then
whiptail --title 'Systeminfo' \
--msgbox "$(cat /proc/meminfo | grep 'MemTotal' | sed 's/MemTotal:/Mem:/')\n\n$(cat /proc/cpuinfo | grep 'model name' | uniq | sed 's/model name.*:/CPU:/')\n\n$(fdisk -l | grep '/dev/sd.:' | sed 's/B,.*/B/')" 16 60
continue
fi
if [ "$totp_confirm" = "F" ]; then
oem-factory-reset
continue