diff options
Diffstat (limited to 'utils/pb-sysinfo')
-rwxr-xr-x | utils/pb-sysinfo | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/pb-sysinfo b/utils/pb-sysinfo index bd2f0fe..001535a 100755 --- a/utils/pb-sysinfo +++ b/utils/pb-sysinfo @@ -7,4 +7,10 @@ case "$1" in '--id') tr -d '\0' < /proc/device-tree/system-id ;; +'--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 |