[前置動作] 要能夠登入 Fon Plus 192.168.10.1 port 22 重要網址 http://eric.levine.free.fr/foneraplus/Packages/ [部份設定修改] 令 Fo...
[前置動作]
- 要能夠登入 Fon Plus
- 192.168.10.1 port 22
- 重要網址
http://eric.levine.free.fr/foneraplus/Packages/
[部份設定修改]
- 令 Fon Plus 為註冊狀態
echo 1 > /etc/config/registered - 設定分享頻寬
上傳 1MB, 下載 10MB
uci set qos.wan.upload=1024
uci set qos.wan.download=10240
uci commit
[昇級 Busybox]
暫停部份服務,為了解決 ipkg: fork failed: Cannot allocate memory
昇級取得 vi 功能
killall: dnsmasq,chilli,fonstate,httpd,fonsmcd,crond,hotplug2,logger,syslogd,klogd,watch_chilli, hostapd
安裝 kmod-*-fonera-1_mips.ipk 只能由下面網址所提供之套件來安裝
http://eric.levine.free.fr/foneraplus/Packages/
- cd /tmp
- wgeg http://downloads.openwrt.org/kamikaze/7.06/atheros-2.6/packages/busybox_1.4.2-1_mips.ipk
- ipkg install busybox_1.4.2-1_mips.ipk
- Done-完工
[設定自動更新]
- . /tmp/.thinclient.sh
- cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
確認
thinclient dummy
[在網頁管理加上指令功能]
vi /www/cgi-bin/webif/diag.sh (建一個新檔)
#!/usr/bin/webif-page
<?
###
#
# FreeWLAN Addons - http://www.freewlan.info
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA
#
# http://www.gnu.org/copyleft/gpl.html
#
###
. /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 ?>
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>
http://www.fonboard.nl/wiki/Unlock_la_fonera_plus#Windows_howto