#!/usr/bin/python3 -I
"""Privileged network helper for the NUC Cockpit web console (invoked via sudo)."""
import os
import sys

# never let the caller redirect config/state paths of a root helper
for key in [k for k in os.environ if k.startswith("NUC_COCKPIT_")]:
    del os.environ[key]
sys.path.insert(0, "/usr/lib/nuc-cockpit")

from nuc_cockpit.netctl import main  # noqa: E402

main()
