Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
add script untuk instal breed-web
Browse files Browse the repository at this point in the history
  • Loading branch information
yhpgi committed Jun 4, 2023
1 parent 6564311 commit d5a6506
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 4 deletions.
30 changes: 26 additions & 4 deletions INSTALL-BREED.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,24 @@
### 1. Persiapan

* Unduh Breed-web [disini](https://breed.hackpascal.net/). Gunakan versi `breed-mt7620-reset26.bin` atau ambil [disini](dump/breed-mt7620-reset26.bin);

* Unduh program untuk telnet. bisa menggunakan [putty](https://www.putty.org/) atau windows terminal.

### 2. Mengaktikan Telnet

* Lakukan backup konfigurasi;

* Edit 2860.dat menggunakan text editor. pastikan text editor mendukung file binary;

* Cari MGMT_TELNET_WAN dan MGMT_TELNET_LAN;

* Ubah nilainya menjadi 1;

* Restore menggunakan konfigurasi yang telah dimodifikasi tersebut;

* Reboot router.

### 3. Install Breed-web
### 3. Instal Breed-web

* Sambungkan koneksi telnet;
```
Expand Down Expand Up @@ -56,9 +62,25 @@
<dl>
<dd>
```diff
+ TODO
```
### 1. Persiapan
* Koneksi internet.
### 2. Instal Breed-web
* Akses Web Router dengan mengetikkan IP Addressnya, login.
* Masuk ke halaman `http://[alamat-ip-router]/adm/system_command.shtml`
* Klik di input box command, masukkan perintah dibawah lalu klik Enter.
```
wget -O- https://raw.githubusercontent.com/yHpgi/openwrt-bl201-boluwrt/main/dump/install-breed.sh | sh
```
* Proses instalasi akan berjalan. pastikan anda memiliki koneksi internet yang baik.
* Penginstalan akan otomatis dibatalkan jika file corupt.
* Tunggu hingga proses selesai. jika berhasil, akan muncul log di layar dan router akan auto-reboot setelah penginstalan selesai.
</dd>
</dl>
Expand Down
61 changes: 61 additions & 0 deletions dump/install-breed.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/sh

cp /etc_ro/lighttpd/www/adm/system_command.shtml /tmp/system_command.shtml

/bin/rm /tmp/installer.sh
/bin/rm /tmp/install.log
/bin/rm /tmp/checksum_breed
/bin/rm /tmp/md5_breed
/bin/rm /tmp/breed.bin

echo '<pre><!--#exec cmd="cat /tmp/install.log"--></pre><script>setInterval(function(){window.location.reload()},1000);</script>' > /etc_ro/lighttpd/www/adm/system_command.shtml

cat <<EOF > /tmp/installer.sh
#!/bin/sh
echo "a8265440e702da98ba664847d3dc2e53" > /tmp/checksum_breed
{
echo -e "Breed Installer Bolt BL-100/BL-201\n"
echo -e "Mempersiapkan ...\n"
echo -e "ID : \`id\`"
echo -e "Layout memori : \n\`cat /proc/mtd\`\n"
echo "Mengunduh Breed ..."
echo "Pastikan anda memiliki koneksi internet ..."
wget --content-disposition -O /tmp/breed.bin https://raw.githubusercontent.com/yHpgi/openwrt-bl201-boluwrt/main/dump/breed-mt7620-reset26.bin
chmod +x /tmp/breed.bin
/usr/bin/md5sum /tmp/breed.bin | /usr/bin/awk '{print \$1}' > /tmp/md5_breed
if [ "\`cat /tmp/md5_breed\`" != "\`cat /tmp/checksum_breed\`" ]; then
echo -e "\nChecksum tidak cocok !"
echo "Valid Checksum: \`cat /tmp/checksum_breed\`"
echo "File Checksum: \`cat /tmp/md5_breed\`"
echo -e "\nMembatalkan penginstalan !"
exit 0
fi
echo -e "Valid Breed Checksum: \`cat /tmp/md5_breed\`\n"
echo -e "---------------------- PERINGATAN !!! -------------------------"
echo -e "| Memulai penginstalan ... |"
echo -e "| Jangan matikan perangkat, atau perangkat akan mati total ! |"
echo -e "---------------------------------------------------------------\n"
echo -e "Menginstal breed ke memori ...\n"
mtd_write write /tmp/breed.bin Bootloader
echo '<pre><!--#exec cmd="cat /tmp/install.log"--></pre>' > /etc_ro/lighttpd/www/adm/system_command.shtml
echo "Penginstalan selesai, memulai ulang perangkat ..."
reboot
} > /tmp/install.log 2>&1
EOF

chmod +x /tmp/installer.sh
/bin/sh /tmp/installer.sh &

0 comments on commit d5a6506

Please sign in to comment.