mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-09 15:40:45 +02:00
Added Dump Bootloader
This commit is contained in:
7
firmware_mod/www/cgi-bin/dumpbootloader.cgi
Normal file
7
firmware_mod/www/cgi-bin/dumpbootloader.cgi
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Content-type: application/x-binary"
|
||||
echo 'Content-Disposition: attachment; filename="bootloader.bin"'
|
||||
|
||||
echo ""
|
||||
dd if=/dev/mtd0
|
@@ -861,6 +861,22 @@ cat << EOF
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Mounts -->
|
||||
<div class='card status_card'>
|
||||
<header class='card-header'><p class='card-header-title'>Bootloader Information</p></header>
|
||||
<div class='card-content'>
|
||||
Your Bootloader MD5 is:
|
||||
<pre>$(md5sum /dev/mtd0 |cut -f 1 -d " ")</pre>
|
||||
Your Bootloader Version is:
|
||||
<pre>$(busybox strings /dev/mtd0 | grep "U-Boot 2")</pre>
|
||||
|
||||
|
||||
<a target="_blank" href="cgi-bin/dumpbootloader.cgi">Download Bootloader</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
EOF
|
||||
script=$(cat /system/sdcard/www/scripts/status.cgi.js)
|
||||
echo "<script>$script</script>"
|
||||
|
Reference in New Issue
Block a user