version=1 for all types of boxes / add linse-rpi13

This commit is contained in:
2025-08-19 10:46:09 +02:00
parent b1f4bfc963
commit 991236fdca
2 changed files with 14 additions and 0 deletions

10
cfg/linse-rpi13.cfg Normal file
View File

@@ -0,0 +1,10 @@
; please refer to README.md for help
[BOX]
type=dual-eth-rpi
MAC=d8:3a:dd:51:2c:c9
version=1
[NETWORK]
end0=wan
enx00e04c6801c7=192.168.1.1

View File

@@ -31,6 +31,7 @@ def exit():
try:
import serial
except ImportError:
version=1
if 'yes'.startswith(input('install pyserial? [y]')):
os.system('sudo apt update')
os.system('sudo apt install python3-pip')
@@ -81,6 +82,7 @@ TEMPLATES['control-box'] = f"""{COMMENT}
[BOX]
type=%(typ)s
MAC=%(mac)s
version=1
[NETWORK]
eth0=wan
@@ -99,6 +101,7 @@ TEMPLATES['dual-eth-rpi'] = f"""{COMMENT}
[BOX]
type=%(typ)s
MAC=%(mac)s
version=1
[NETWORK]
end0=wan
@@ -110,6 +113,7 @@ GENERIC_TEMPLATE = f"""{COMMENT}
[BOX]
type=%(typ)s
MAC=%(mac)s
version=1
"""
DHCP_HEADER = """