cleanup Embedded

This commit is contained in:
SpudGunMan
2025-01-02 21:57:53 -08:00
parent b4168214b6
commit b0e57e8aca
2 changed files with 7 additions and 6 deletions
+5 -4
View File
@@ -8,8 +8,7 @@
type = serial
port = /dev/ttyACM0
# port = /dev/ttyUSB0
# port = COM1
# hostname = localhost
# hostname = meshtastic.local
# mac = 00:11:22:33:44:55
# Additional interface for dual radio support
@@ -17,9 +16,9 @@ port = /dev/ttyACM0
enabled = False
type = serial
port = /dev/ttyUSB0
#port = /dev/ttyACM1
# port = /dev/ttyACM1
# port = COM1
# hostname = meshtastic.local
# hostname = localhost
# mac = 00:11:22:33:44:55
[general]
@@ -74,6 +73,8 @@ urlTimeout = 10
LogMessagesToFile = False
# Logging of system messages to file
SyslogToFile = True
# logging level for the bot (DEBUG, INFO, WARNING, ERROR, CRITICAL)
sysloglevel = DEBUG
# Number of log files to keep in days, 0 to keep all
log_backup_count = 32
+2 -2
View File
@@ -255,8 +255,8 @@ else
# replace "type = serial" with "type = tcp" in config.ini
replace="s|type = serial|type = tcp|g"
sed -i "$replace" config.ini
# replace "# hostname = 192.168.0.1" with "hostname = localhost" in config.ini
replace="s|# hostname = localhost|hostname = localhost|g"
# replace "# hostname = meshtastic.local" with "hostname = localhost" in config.ini
replace="s|# hostname = meshtastic.local|hostname = localhost|g"
sed -i "$replace" config.ini
printf "\nConfig file updated for embedded\n"