Update rootfs_script.sh

pull/1681/head
Huang jinlong 2024-12-20 04:26:23 +08:00 committed by GitHub
parent 17f1b0d901
commit db0bf07b38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -252,5 +252,9 @@ sed -i '/--out 127.0.0.1:$(($port_tx + 1)) -osd -r "$fps" --ahi "$ahi" > \/dev\/
cp "${TARGET_DIR}/usr/share/fonts/font_btfl.png" "${TARGET_DIR}/usr/share/fonts/font.png "
cp "${TARGET_DIR}/usr/share/fonts/font_btfl_hd.png" "${TARGET_DIR}/usr/share/fonts/font_hd.png"
#######################################################################################################################
# 修改telemetry脚本 启动mavlink路由器
sed -i '/--out 127.0.0.1:$(($port_tx + 1)) -osd -r "$fps" --ahi "$ahi" > \/dev\/null &/a\
\t\t\t\t\tmavlink-routerd -c /etc/mavlink.conf > /dev/null 2>&1 &' ${TARGET_DIR}/usr/bin/telemetry
########################################################################################################################