discover: Use platform code to read sysinfo type and identifier
[petitboot] / utils / pb-sysinfo
1 #!/bin/sh
2
3 case "$1" in
4 '--debug-enabled')
5         exec >/dev/null 2>&1
6         nvram --print-config=petitboot,debug? | grep -q true && exit 0
7         grep -Fq petitboot.debug /proc/cmdline && exit 0
8         exit 1
9         ;;
10 esac