lsgm/live/source/sys.sh

25 lines
798 B
Bash
Raw Normal View History

2023-11-30 12:34:21 +00:00
function sys_set {
sys_unset
smbios --set sys_manufacturer --type 1 --get-string 4
smbios --set sys_product --type 1 --get-string 5
smbios --set sys_serial --type 1 --get-string 7
smbios --set sys_uuid --type 1 --get-uuid 8
smbios --set sys_cpu --type 4 --get-string 16
2023-12-02 16:45:59 +00:00
smbios --set sys_ram_max_kb --type 16 --get-dword 7
smbios --set sys_ram_max_nb --type 16 --get-word 13
smbios --set sys_ram_kb --type 19 --get-dword 8
smbios --set sys_ram_nb --type 19 --get-byte 14
2023-11-30 12:34:21 +00:00
}
function sys_unset {
unset sys_manufacturer
unset sys_product
unset sys_serial
unset sys_uuid
unset sys_cpu
2023-12-02 16:45:59 +00:00
unset sys_ram_max_kb
unset sys_ram_max_nb
unset sys_ram_kb
unset sys_ram_nb
2023-11-30 12:34:21 +00:00
}