#!/usr/bin/env python3
import os, sys, shutil
# Fail the short-lived inventory probe; live sessions run the real installed Pi.
if '--offline' in sys.argv and '--mode' in sys.argv:
    sys.exit(1)
os.execv(shutil.which('pi'), ['pi', *sys.argv[1:]])
