Update rootfs_script.sh

pull/1681/head
Huang jinlong 2024-12-07 07:30:02 +08:00 committed by GitHub
parent a089cb8deb
commit f28f5dc637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

View File

@ -76,3 +76,21 @@ EOF
# 给脚本添加执行权限
chmod +x "$OK_SCRIPT"
# 修改 /etc/zerotier.conf
ZEROTIER_CONF="${TARGET_DIR}/etc/zerotier.conf"
if [ -f "$ZEROTIER_CONF" ]; then
sed -i 's/enabled=false/enabled=true/' "$ZEROTIER_CONF"
else
echo "$ZEROTIER_CONF does not exist!"
fi
# 修改 /etc/wfb.conf
WFB_CONF="${TARGET_DIR}/etc/wfb.conf"
if [ -f "$WFB_CONF" ]; then
sed -i 's/channel=64/channel=161/' "$WFB_CONF"
sed -i 's/driver_txpower_override=1/driver_txpower_override=20/' "$WFB_CONF"
else
echo "$WFB_CONF does not exist!"
fi