mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-21 22:07:52 +00:00
Add systeminfo menu option
This commit is contained in:
parent
05c854753c
commit
c07f3b7f7c
@ -233,6 +233,7 @@ while true; do
|
|||||||
'c' ' Change configuration settings -->' \
|
'c' ' Change configuration settings -->' \
|
||||||
'f' ' Flash/Update the BIOS -->' \
|
'f' ' Flash/Update the BIOS -->' \
|
||||||
'G' ' GPG Options -->' \
|
'G' ' GPG Options -->' \
|
||||||
|
'S' ' Systeminfo' \
|
||||||
'F' ' OEM Factory Reset -->' \
|
'F' ' OEM Factory Reset -->' \
|
||||||
'x' ' Exit to recovery shell' \
|
'x' ' Exit to recovery shell' \
|
||||||
'r' ' <-- Return to main menu' \
|
'r' ' <-- Return to main menu' \
|
||||||
@ -374,6 +375,12 @@ while true; do
|
|||||||
continue
|
continue
|
||||||
fi
|
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
|
if [ "$totp_confirm" = "F" ]; then
|
||||||
oem-factory-reset
|
oem-factory-reset
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user