mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 09:58:21 -04:00
net: make new module from {forwarding,ssh,telnet}.py
This commit is contained in:
parent
6fed749488
commit
afca099ede
9 changed files with 16 additions and 12 deletions
13
net/telnet.py
Normal file
13
net/telnet.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
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,
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue