另类开始魔豆路由游戏加速和添加aria2触屏管理(升级系统可能不会消失)
今天魔豆路由器更新了最新版固件0.6.10,重起后发现触屏的APP不见了。就把原来拷贝出来的触屏列表文件复制进路由器,可惜黑屏。研究了很久都没办法。只好重新下固件,然后断电捅菊花通电5秒进入安全模式重刷固件。重新安装插件。过程中发现HDNS(触屏版)插件文件夹C里面有个tp_apps.conf这文件,这不是魔豆路由器触屏菜单文件吗?有发现insta.sh文件里代码为
#!/bin/sh
curdir=$(cd $(dirname $0) && pwd)
fc=$(cat $curdir/c/tp_apps.conf);
fb=$(cat /system/apps/tp/conf/tp_apps.conf);
if [ "$fc" != "$fb" ];
then
writesys.sh;
cp $curdir/c/tp_apps.conf /system/apps/tp/conf/tp_apps.conf;
return 0;
fi
呵呵,这不是把之前文件夹C里面的tp_apps.conf文件复制到 /system/apps/tp/conf/tp_apps.conf吗,
果断把开启游戏加速的代码,和ARIA2的代码添加到HDNS插件文件夹C里面的tp_apps.conf里。重启路由器,发现触屏上的图标终于回来了。等下次更新固件,看会不会被还原。(注意:在整过过程中,重刷系统后到添加代码完成后重启路由,就一次重启路由。)
下面是我路由器tp_apps.conf文件的代码:
{
"app_num": 12,
"apps":[
{ "name" : "网络状态",
"icon" : "/system/apps/tp/images/appicon_status_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_status_active.png",
"exec" : "/system/apps/tp/bin/system-status",
"msgNum" : 4
},
{ "name" : "设备列表",
"icon" : "/system/apps/tp/images/appicon_devices_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_devices_active.png",
"exec" : "/system/apps/tp/bin/device-list",
"msgNum" : 4
},
{ "name" : "时钟",
"icon" : "/system/apps/tp/images/appicon_time_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_time_active.png",
"exec" : "/system/apps/tp/bin/clock",
"msgNum" : 4
},
{ "name" : "网络设置",
"icon" : "/system/apps/tp/images/appicon_networkConfig_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_networkConfig_active.png",
"exec" : "/system/apps/tp/bin/networkSetting",
"msgNum" : 4
},
{ "name" : "极客模式",
"icon" : "/system/apps/tp/images/appicon_expertMode_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_expertMode_active.png",
"exec" : "/system/apps/tp/bin/expert-mode",
"msgNum" : 4
},
{ "name" : "系统更新",
"icon" : "/system/apps/tp/images/appicon_update_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_update_active.png",
"exec" : "/system/apps/tp/bin/system-update",
"msgNum" : 4
},
{ "name" : "防蹭网",
"icon" : "/system/apps/tp/images/appicon_app_2-factorAuth_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_app_2-factorAuth_active.png",
"exec" : "/system/apps/tp/bin/fangcengwang",
"msgNum" : 4
},
{ "name" : "帮助反馈",
"icon" : "/system/apps/tp/images/appicon_feedback_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_feedback_active.png",
"exec" : "/system/apps/tp/bin/system-help",
"msgNum" : 4
},
{ "name" : "HDNS",
"icon" : "/data/apps/tp/hdns/images/HDNS1.png",
"iconPressed" : "/data/apps/tp/hdns/images/HDNS2.png",
"exec" : "/data/apps/tp/hdns/bin/cdns /data/apps/tp/hdns/c/hdns.conf ",
"msgNum" : 4
},
{ "name" : "Aria2",
"icon" : "/data/apps/72116776/images/HDNS1.png",
"iconPressed" : "/data/apps/72116776/images/HDNS2.png",
"exec" : "custom /data/apps/tp/aria2/conf/aria.conf ",
"msgNum" : 4
},
{ "name" : "游戏加速",
"icon" : "/system/apps/tp/images/appicon_gameAcc_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_gameAcc_active.png",
"exec" : "/system/apps/tp/bin/game-speedup",
"msgNum" : 4
},
{ "name" : "初始化向导",
"icon" : "/system/apps/tp/images/appicon_settingGuide_normal.png",
"iconPressed" : "/system/apps/tp/images/appicon_settingGuide_active.png",
"exec" : "/system/apps/tp/bin/networkGuide",
"msgNum" : 4
}
]
}
相关文档:
开启游戏加速:https://nctoro.com/?post=279
添加aria2触屏开启,停止,重启服务:https://nctoro.com/?post=280
发表评论