version=1 for all types of boxes / add linse-rpi13
This commit is contained in:
10
cfg/linse-rpi13.cfg
Normal file
10
cfg/linse-rpi13.cfg
Normal 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
|
||||
@@ -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 = """
|
||||
|
||||
Reference in New Issue
Block a user