ubnt解决方案
查看: 1161|回复: 4

[Tomato] tomato tt加载指定主题 离线可用

[复制链接]

3458

回帖

6361

积分

4505 小时

在线时间

中校

点评砖家

雷锋勋章中级工程师

注册时间
2012-10-26
金币
1970 个
威望
16 个
荣誉
5 个
累计签到:75 天
连续签到:1 天
[LV.100]试剑无线
发表于 2015-4-25 21:23 |显示全部楼层
本帖最后由 那个男人 于 2015-4-25 21:24 编辑

作者原帖  http://www.right.com.cn/forum/thread-160218-1-1.html今天原作者给予指导,帮我搞定了离线野可以加载主题的方法
在这里分享给大家
有2种方法,第一种是只有在联网的时候才可以加载主题   这个就不说了
主要说第二种 离线加载主题  这里以cisco主题为例子

1.打开系统管理-脚本设置-初始化,输入命令 sh /jffs/theme.sh  后保存设置

2.打开系统管理-JFFS-启用JFFS 后保存设置

3.winscp上传主题darkknight_cisco和启动代码theme.sh到jffs目录里,赋予theme.sh 777权限
保存重启即可


主题的下载地址“http://tomatothemebase.eu/wp-content/uploads/XXXXXXXX.zip”
红色的“XXXXXXXX”代表要下载主题的ID名称。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册 微信登录

x

3458

回帖

6361

积分

4505 小时

在线时间

中校

点评砖家

雷锋勋章中级工程师

注册时间
2012-10-26
金币
1970 个
威望
16 个
荣誉
5 个
累计签到:75 天
连续签到:1 天
[LV.100]试剑无线
发表于 2015-4-25 21:24 |显示全部楼层
联网下可以用以下教程
chmod -R 777 /tmp/var/wwwext
css=$(nvram get ttb_css)'.zip'
wait
rm /tmp/var/wwwext/$css
wait
wget -P /tmp/var/wwwext/ http://tomatothemebase.eu/wp-content/uploads/$css -c -t 100
wait
unzip /tmp/var/wwwext/$css -d /tmp/var/wwwext -o
wait
rm /tmp/var/wwwext/$css
wait
把上面的代码添加到路由器“系统管理”----“脚本设置”-----“当WAN联机”中。。。
然后在风格中选择“darkknight_cisco”。每次重启路由器的时候,等路由器联外后,会自动下载,自动安装主题。
回复

使用道具 举报

854

回帖

3715

积分

684 小时

在线时间

少校

注册时间
2012-6-20
金币
2665 个
威望
2 个
荣誉
1 个
累计签到:135 天
连续签到:0 天
[LV.200]无线新星
发表于 2015-4-25 23:34 |显示全部楼层
theme.sh内容是什么呢
回复

使用道具 举报

3458

回帖

6361

积分

4505 小时

在线时间

中校

点评砖家

雷锋勋章中级工程师

注册时间
2012-10-26
金币
1970 个
威望
16 个
荣誉
5 个
累计签到:75 天
连续签到:1 天
[LV.100]试剑无线
发表于 2015-4-26 08:45 |显示全部楼层
jeromeli002 发表于 2015-4-25 23:34
theme.sh内容是什么呢


theme.sh 内容如下
css=$(nvram get ttb_css)'.zip';
rm /tmp/var/wwwext/$css;
wait;
upath="/jffs/"$css;
cp $upath /tmp/var/wwwext -r -f;
wait;
unzip /tmp/var/wwwext/$css -d /tmp/var/wwwext -o;
wait
rm /tmp/var/wwwext/$css
wait
回复

使用道具 举报

3458

回帖

6361

积分

4505 小时

在线时间

中校

点评砖家

雷锋勋章中级工程师

注册时间
2012-10-26
金币
1970 个
威望
16 个
荣誉
5 个
累计签到:75 天
连续签到:1 天
[LV.100]试剑无线
发表于 2015-4-26 09:46 |显示全部楼层
manual (no TTB)
This method is the traditional one and assume you have access to some sort of external storage e.g. cifs or usb. In this example we’ll use cifs and mytheme.zip:

1) Download mytheme.zip into cifs1. To do so refer to the standard URL http://tomatothemebase.eu/wp-content/uploads/ + theme name + .zip

cd /cifs1

wget -O theme.zip http://tomatothemebase.eu/wp-content/uploads/mytheme.zip

2) Extract your archive into cifs1:

unzip -o mytheme.zip -d /cifs1/mytheme

3) rename the .css file

mv /cifs1/mytheme/mytheme.css /cifs1/mytheme/custom.css

4) Copy the files into tomato (RAM):

cp -r /cifs1/mytheme/* /var/wwwext/

5) Log into your tomato and go into Administration/Admin access/Colour scheme

6) Select the option Custom (ext/custom.css)

7) Save

8) Reload your tomato interface in the browser

9) If you want the theme to load from cifs1 automtically (e.g. after a reboot) add this line as per point 4) in the Administration/cifs client/Execute When Mounted

cp -r /cifs1/mytheme/* /var/wwwext/



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

站点统计 | Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2025-5-22 13:15

返回顶部 返回列表