You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
764 B
21 lines
764 B
3 years ago
|
#/bin/bash
|
||
|
|
||
|
sysupgradeUrl="http://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620"
|
||
|
sysupgradeFile="openwrt-19.07.7-ramips-mt7620-ArcherMR200-squashfs-sysupgrade.bin"
|
||
|
bootloaderFile="ArcherMR200_bootloader.bin"
|
||
|
recoveryFile="ArcherC2V1_tp_recovery.bin"
|
||
|
|
||
|
dd bs=512 obs=512 skip=1 count=256 if=Archer\ MR200v1_0.9.1_1.2_up_boot_v004a.0\ Build\ 180502\ Rel.53881n.bin of="$bootloaderFile"
|
||
|
cat "$bootloaderFile" "$sysupgradeFile" > "$recoveryFile"
|
||
|
|
||
|
atftpDir="/srv/atftp"
|
||
|
sudo pacman -S atftp
|
||
|
sudo mkdir -p "$atftpDir"
|
||
|
sudo cp "$recoveryFile" "$atftpDir"
|
||
|
sudo chown -R atftp:atftp "$atftpDir"
|
||
|
sudo ifconfig enp0s31f6 192.168.0.66/23
|
||
|
sudo systemctl start atftpd.service
|
||
|
|
||
|
echo "Now connect the MR200 router via LAN1 and restart it while holding WPS button."
|
||
|
|