号外!!! Tomato Phoenix 不死鸟系统成功移植到OpenWRT 更新固件下载地址
本帖最后由 佐须之男 于 2017-9-18 13:38 编辑花了大概有两个月时间,完成了Tomato Phoenix不死鸟UI部分的移植,系统采用的是lede,httpd采用的是uhttpd,cgi的语言采用的是lua,并没有基于luci而是从零开始编写的一套自由框架,文章后面有部分cgi的代码实现供网友研究。测试版系统会在近期发布。
固件下载地址:
https://pan.baidu.com/s/1dFq3elb
http://www.anywlan.com/forum.php?mod=image&aid=707823&size=300x300&key=1b2308328905c8bc&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707822&size=300x300&key=01acb1211af44151&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707821&size=300x300&key=e0c2251d19778598&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707820&size=300x300&key=a8ebe1e36f65ff16&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707819&size=300x300&key=db492b8af4ed95f9&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707818&size=300x300&key=7b613851c70d7712&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707817&size=300x300&key=baf0000e27c4a650&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707816&size=300x300&key=32ae5cfbb0914a43&nocache=yes&type=fixnone
http://www.anywlan.com/forum.php?mod=image&aid=707815&size=300x300&key=9053df7812ff944d&nocache=yes&type=fixnone
BusyBox v1.25.1 () built-in shell (ash)
_________
/ /\ _ ___ ______
/LE /\ | || __| \| __|
/ DE/ \ | |__| _|| |) | _|
/________/LE\|____|___|___/|___| lede-project.org
\ \ DE /
\ LE\ /-----------------------------------------------------------
\DE \/ Reboot (17.01-SNAPSHOT, r3473-a5822db)
\________\/ -----------------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:~#
很多网友对lua底层实现代码感兴趣,所以我公布几个cgi的代码片段,供大家学习.
config-mac.lua -> 用户获取wan和lan的mac地址
#!/usr/bin/lua
local webio = require("webio")
local header = require("header")
local uci = require("uci")
local x = uci.cursor()
header.send_header(200, nil, "text/javascript", 0)
webio.puts("\nnvram = {\n")
webio.printf("\tmac_lan:'%s'", x:get("network", "wan_dev", "macaddr"))
webio.printf(",\n\tmac_wan:'%s'", x:get("network", "lan_dev", "macaddr"))
webio.puts("};\n");
apply-mac.lua -> 用户保存wan,lan的mac地址并生效
#!/usr/bin/lua
local cgi = require("cgi")
local webio = require("webio")
local header = require("header")
local uci = require("uci")
local x = uci.cursor()
local args = cgi.get_uri_args()
header.send_header(200, nil, "text/javascript", 0)
webio.printf("@msg:重启过程中,网络会中断")
local mac_lan = string.match(args["mac_lan"], "(+)")
if mac_lan then
x:set("network", "lan_dev", "macaddr", mac_lan)
end
mac_wan = string.match(args["mac_wan"], "(+)")
if mac_wan then
x:set("network", "wan_dev", "macaddr", mac_wan)
end
x:save("network")
x:commit("network")
os.execute("/etc/init.d/network restart&")
固件下载地址:
https://pan.baidu.com/s/1dFq3elb
:lol:lol:lol:lol 有没有7240+9283的不死鸟固件呀。。。。。 没有PPPOE功能:( 看来这个固件真是不错的 不学编程看不懂只会下载使用 只会下载使用 会出一些其他类型的芯片的么? 934195589553等, adbyby能搞上么? 楼主加油,辛苦了。 只会下载使用
页:
[1]