mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
Update chr.sh
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
f1d3c640f8
commit
b6c24eb657
5
chr.sh
5
chr.sh
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user