Update chr.sh

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-09-24 18:21:53 +08:00 committed by GitHub
parent f1d3c640f8
commit b6c24eb657
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
chr.sh
View file

@ -219,11 +219,10 @@ create_autorun() {
done
fi
cat <<EOF > "$MNT/rw/autorun.scr"
/ip dhcp-client disable [ /ip dhcp-client find ]
/user set admin password="$RANDOM_ADMIN_PASS"
/ip dns set servers=$DNS
/ip address add address=$ADDRESS interface=ether1
/ip route add gateway=$GATEWAY
/ip dns set servers=$DNS
/user set admin password="$RANDOM_ADMIN_PASS"
EOF
echo "$MSG_AUTO_RUN_FILE_CREATED"
umount $MNT