Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions nilrt_snac/_configs/_console_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ def __init__(self):
def configure(self, args: argparse.Namespace) -> None:
print("Deconfiguring console access...")

if args.dry_run:
return
if not args.dry_run:
subprocess.run(
["nirtcfg", "--set", "section=systemsettings,token=consoleout.enabled,value=False"],
check=True,
)
else:
print("Dry run: would have run nirtcfg --set section=systemsettings,token=consoleout.enabled,value=False")

subprocess.run(
["nirtcfg", "--set", "section=systemsettings,token=consoleout.enabled,value=False"],
check=True,
)
opkg.remove("sysconfig-settings-console", force_depends=True)

def verify(self, args: argparse.Namespace) -> bool:
Expand Down
Loading