Update bootstrap.sh

This commit is contained in:
Kelly
2026-03-17 17:18:50 -07:00
parent 021efc8c63
commit cba6fe3ba2

View File

@@ -18,9 +18,10 @@ if [[ ! -f "$BASE_DIR/config.ini" ]]; then
cp "$BASE_DIR/config.template" "$BASE_DIR/config.ini"
sleep 1
replace="s|type = serial|type = tcp|g"
sed -i '' "$replace" "$BASE_DIR/config.ini"
sed -i.bak "$replace" "$BASE_DIR/config.ini"
replace="s|# hostname = meshtastic.local|hostname = localhost|g"
sed -i '' "$replace" "$BASE_DIR/config.ini"
sed -i.bak "$replace" "$BASE_DIR/config.ini"
rm -f "$BASE_DIR/config.ini.bak"
else
echo "config.ini already exists, leaving it unchanged."
fi