summaryrefslogtreecommitdiffstats
path: root/utils/pb-sysinfo
blob: 7d6635cf0351c87f1d66429c0f8f26f8eb93c5ed (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

case "$1" in
'--debug-enabled')
	exec >/dev/null 2>&1
	nvram --print-config=petitboot,debug? | grep -q true && exit 0
	grep -Fq petitboot.debug /proc/cmdline && exit 0
	exit 1
	;;
esac
OpenPOWER on IntegriCloud