※要先能夠SSH登入 Fon Plus
1. 令 Fon Plus 為註冊狀態 (如果管理畫面出現未註冊狀態)
echo 1 > /etc/config/registered
2. 設定分享頻寬
ex.上傳 1MB, 下載 10MB
uci set qos.wan.upload=1024
uci set qos.wan.download=10240
uci commit
3. 昇級 Busybox (需先暫停部份服務)
取得 vi 功能
kill以下服務
dnsmasq,chilli,fonstate,httpd,
fonsmcd,crond,hotplug2,logger,
syslogd,klogd,watch_chilli,hostapd
http://eric.levine.free.fr/foneraplus/Packages/
3-1.cd /tmp
3-2.wget busybox_1.4.2-1_mips.ipk(請自行補上網址)
3-3.ipkg install busybox_1.4.2-1_mips.ipk
4. 設定自動更新
4-1.. /tmp/.thinclient.sh
4-2.cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
4-3. 確認是否啟動
thinclient dummy
5. 在網頁管理加上指令功能
1. vi /www/cgi-bin/webif/diag.sh
複製以下內容:
#!/usr/bin/webif-page
<?
. /usr/lib/webif/webif.sh
validate <<EOF
string|FORM_submit|@TR<<Submit>>|max=10|$FORM_submit
EOF
if [ "$?" != "0" ]
then
FORM_submit=""
fi
sel_diag=1
. /usr/lib/webif/advanced.sh
header "Diagnostics"
echo "<textarea style='width:700px; height:400px'>"
eval $FORM_cmd
echo "</textarea>"
display_form <<EOF
start_table|0|10|5
add_row
add_label_cell|@TR<<Command>>:
add_input_cell|cmd||tableTextButton
add_button_cell|submit|@TR<<Submit>>
end_row
end_table
EOF
footer ?>
存檔後離開
2. vi /usr/lib/webif/advanced.sh
<tr>
<td class=\"advancedMenu\">
<span class=\"submenu${sel_diag:+_sel}\">
<a href=\"/cgi-bin/webif/diag.sh\">@TR<<Diag_Title|Diagnostics>></a>
</span>
</td>
</tr>
Ref.
http://www.fonboard.nl/wiki/Unlock_la_fonera_plus#Windows_howto
http://fjufirefox.blogspot.com/2008/01/fon-fon-plus.html
1. 令 Fon Plus 為註冊狀態 (如果管理畫面出現未註冊狀態)
echo 1 > /etc/config/registered
2. 設定分享頻寬
ex.上傳 1MB, 下載 10MB
uci set qos.wan.upload=1024
uci set qos.wan.download=10240
uci commit
3. 昇級 Busybox (需先暫停部份服務)
取得 vi 功能
kill以下服務
dnsmasq,chilli,fonstate,httpd,
fonsmcd,crond,hotplug2,logger,
syslogd,klogd,watch_chilli,hostapd
http://eric.levine.free.fr/foneraplus/Packages/
3-1.cd /tmp
3-2.wget busybox_1.4.2-1_mips.ipk(請自行補上網址)
3-3.ipkg install busybox_1.4.2-1_mips.ipk
4. 設定自動更新
4-1.. /tmp/.thinclient.sh
4-2.cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
4-3. 確認是否啟動
thinclient dummy
5. 在網頁管理加上指令功能
1. vi /www/cgi-bin/webif/diag.sh
複製以下內容:
#!/usr/bin/webif-page
<?
. /usr/lib/webif/webif.sh
validate <<EOF
string|FORM_submit|@TR<<Submit>>|max=10|$FORM_submit
EOF
if [ "$?" != "0" ]
then
FORM_submit=""
fi
sel_diag=1
. /usr/lib/webif/advanced.sh
header "Diagnostics"
echo "<textarea style='width:700px; height:400px'>"
eval $FORM_cmd
echo "</textarea>"
display_form <<EOF
start_table|0|10|5
add_row
add_label_cell|@TR<<Command>>:
add_input_cell|cmd||tableTextButton
add_button_cell|submit|@TR<<Submit>>
end_row
end_table
EOF
footer ?>
存檔後離開
2. vi /usr/lib/webif/advanced.sh
<tr>
<td class=\"advancedMenu\">
<span class=\"submenu${sel_diag:+_sel}\">
<a href=\"/cgi-bin/webif/diag.sh\">@TR<<Diag_Title|Diagnostics>></a>
</span>
</td>
</tr>
Ref.
http://www.fonboard.nl/wiki/Unlock_la_fonera_plus#Windows_howto
http://fjufirefox.blogspot.com/2008/01/fon-fon-plus.html