mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-08 23:20:48 +02:00
Added cURL for later uploading purposes and cleaned network.cgi to don't show the xiaofang-hacks specific information
This commit is contained in:
3
firmware_mod/bin/curl
Normal file
3
firmware_mod/bin/curl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
LD_LIBRARY_PATH='/thirdlib:/system/lib:/system/sdcard/lib'
|
||||||
|
/system/sdcard/bin/curl.bin "$@"
|
BIN
firmware_mod/bin/curl.bin
Normal file
BIN
firmware_mod/bin/curl.bin
Normal file
Binary file not shown.
BIN
firmware_mod/lib/libcrypto.so.42
Normal file
BIN
firmware_mod/lib/libcrypto.so.42
Normal file
Binary file not shown.
BIN
firmware_mod/lib/libssl.so.44
Normal file
BIN
firmware_mod/lib/libssl.so.44
Normal file
Binary file not shown.
BIN
firmware_mod/lib/libz.so.1
Normal file
BIN
firmware_mod/lib/libz.so.1
Normal file
Binary file not shown.
@@ -4,7 +4,7 @@ echo "Content-type: text/html"
|
|||||||
echo ""
|
echo ""
|
||||||
source func.cgi
|
source func.cgi
|
||||||
if [ -e "/etc/fang_hacks.cfg" ]; then source /etc/fang_hacks.cfg; fi
|
if [ -e "/etc/fang_hacks.cfg" ]; then source /etc/fang_hacks.cfg; fi
|
||||||
PATH="/bin:/sbin:/usr/bin:/media/mmcblk0p2/data/bin:/media/mmcblk0p2/data/sbin:/media/mmcblk0p2/data/usr/bin"
|
PATH="/bin:/sbin:/usr/bin:/system/bin"
|
||||||
|
|
||||||
CFG_MODE="${NETWORK_MODE:-0}"
|
CFG_MODE="${NETWORK_MODE:-0}"
|
||||||
CFG_CLIENT="/media/mmcblk0p2/data/etc/wpa_supplicant.conf"
|
CFG_CLIENT="/media/mmcblk0p2/data/etc/wpa_supplicant.conf"
|
||||||
@@ -247,7 +247,7 @@ window.onload = onLoad;
|
|||||||
<button title='Reboot the device' type='button' onClick="window.location.href='action.cgi?cmd=reboot'">Reboot</button>
|
<button title='Reboot the device' type='button' onClick="window.location.href='action.cgi?cmd=reboot'">Reboot</button>
|
||||||
<button title='Info' type='button' onClick="window.location.href='scripts.cgi'">Scripts</button>
|
<button title='Info' type='button' onClick="window.location.href='scripts.cgi'">Scripts</button>
|
||||||
<button title='View /tmp/hacks.log' type='button' onClick="window.location.href='action.cgi?cmd=showlog'">View log</button>
|
<button title='View /tmp/hacks.log' type='button' onClick="window.location.href='action.cgi?cmd=showlog'">View log</button>
|
||||||
<hr/>
|
<!-- <hr/>
|
||||||
<div style='clear: both;'><pre>$ACTION_MSG</pre></div>
|
<div style='clear: both;'><pre>$ACTION_MSG</pre></div>
|
||||||
<div style='clear: both;'>
|
<div style='clear: both;'>
|
||||||
<fieldset style='display: inline-block;'>
|
<fieldset style='display: inline-block;'>
|
||||||
@@ -327,7 +327,7 @@ if [ "$DISABLE_CLOUD" -eq 1 ]; then
|
|||||||
echo "If you apply this mode network.cgi will NOT be initialized after reboot!"
|
echo "If you apply this mode network.cgi will NOT be initialized after reboot!"
|
||||||
echo "</span>"
|
echo "</span>"
|
||||||
fi
|
fi
|
||||||
echo "<hr/>"
|
echo "<hr/> "
|
||||||
|
|
||||||
echo "<div style='float: left'>"
|
echo "<div style='float: left'>"
|
||||||
echo "<form name='network.cgi-info'>"
|
echo "<form name='network.cgi-info'>"
|
||||||
@@ -365,7 +365,7 @@ cat << EOF
|
|||||||
</div> <!-- ap-pnl -->
|
</div> <!-- ap-pnl -->
|
||||||
<hr/>
|
<hr/>
|
||||||
<button type='button' id='btn_apply' disabled onClick="apply_config()">Apply</button>
|
<button type='button' id='btn_apply' disabled onClick="apply_config()">Apply</button>
|
||||||
<hr/>
|
<hr/> -->
|
||||||
Information:
|
Information:
|
||||||
<pre>Interfaces:<br/>$(ifconfig; iwconfig)</pre>
|
<pre>Interfaces:<br/>$(ifconfig; iwconfig)</pre>
|
||||||
<pre>Routes:<br/>$(route)</pre>
|
<pre>Routes:<br/>$(route)</pre>
|
||||||
|
Reference in New Issue
Block a user