fix boxtools for rpi

- remove to_cm4
- create replace_in_file
This commit is contained in:
l_samenv
2024-03-20 12:01:50 +01:00
parent 26122843b2
commit 5dc4f8a984
7 changed files with 62 additions and 37 deletions

View File

@ -9,7 +9,7 @@ from glob import glob
from select import select
from serial import serial_for_url
from subprocess import Popen, PIPE, check_output, call, DEVNULL
from utils import get_config
from utils import BoxInfo
FIREWALL_CONF = '/etc/nftables.conf'
@ -478,6 +478,6 @@ class Service:
if __name__ == '__main__':
routercfg = get_config('ROUTER')
routercfg = BoxInfo().read_config('ROUTER')
if routercfg:
Service.run(routercfg)