sysinfo: only dump #r/nvram on amd64,386

right now, theres no kernel that stores hostowner keys
in #r/nvram, but this could change in the future. so
only dump #r/nvram on the pc where we know that its
not used to hold keys.
This commit is contained in:
cinap_lenrek 2017-08-08 10:16:13 +02:00
parent ddf977d25c
commit 541e211b7c

View file

@ -21,6 +21,7 @@ fn print{
logprog pci -v logprog pci -v
logprog aux/cpuid logprog aux/cpuid
logprog aux/icanhasmsi logprog aux/icanhasmsi
logprog aux/icanhasvmx
logprog aux/pcmcia logprog aux/pcmcia
logprog cat '#u/usb/ctl' logprog cat '#u/usb/ctl'
logprog cat '#S/sdctl' logprog cat '#S/sdctl'
@ -33,10 +34,13 @@ fn print{
logprog cat $i/ifstats logprog cat $i/ifstats
} }
} }
logprog cat '#v/vgactl' if(test -e '#v/vgactl'){
echo '@{rfork n; aux/realemu; aux/vga -p}' logprog cat '#v/vgactl'
@{rfork n; aux/realemu; aux/vga -p} echo '@{rfork n; aux/realemu; aux/vga -p}'
logprog xd -x1 '#r/nvram' @{rfork n; aux/realemu; aux/vga -p}
}
if(~ $cputype 386 amd64)
logprog xd -x1 '#r/nvram'
logprog cat '#A/audiostat' logprog cat '#A/audiostat'
logprog cat '#A/volume' logprog cat '#A/volume'
logprog cat /mnt/apm/ctl logprog cat /mnt/apm/ctl