net: make new module from {forwarding,ssh,telnet}.py

This commit is contained in:
InsanePrawn 2022-10-16 04:43:45 +02:00
parent 6fed749488
commit afca099ede
9 changed files with 16 additions and 12 deletions

View file

@ -1,13 +0,0 @@
import subprocess
import click
from wrapper import check_programs_wrap
@click.command(name='telnet')
def cmd_telnet(hostname: str = '172.16.42.1'):
"""Establish Telnet connection to device (e.g in debug-initramfs)"""
check_programs_wrap('telnet')
subprocess.run([
'telnet',
hostname,
])