mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-15 09:51:32 +00:00
更新插件aria2,新增插件npc
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
### 更新日志
|
||||
|
||||
* 2020-02-27
|
||||
* 新增插件npc,待测试
|
||||
* aria2版本更新
|
||||
|
||||
* 2019-03-03
|
||||
* 修复`v2ray`配置文件问题(未测试),感谢`@leafnsand`的PR
|
||||
* 修复`Entware`插件无法启动`ONMP`的问题
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
aliddns|动态将你的路由器IP绑定到域名||0.0.2|AliDDNS|linux_arm,linux_mips,linux_x86_64,darwin_x86_64
|
||||
aria2|Linux下一款高效的下载工具|更新aria2web页面,修复日志问题|0.0.3|Aria2|linux_arm,linux_mips,linux_x86_64
|
||||
aria2|Linux下一款高效的下载工具|解决BT无法全速下载问题:DHT 缓存目录配置,感谢@itfsw|0.0.4|Aria2|linux_arm,linux_mips,linux_x86_64
|
||||
baidupcs|第三方百度网盘web客户端,基于Go语言|二进制更新至3.6.6|0.0.5|BaiduPCS|linux_arm,linux_mips,linux_x86_64,darwin_x86_64
|
||||
dropbear|移植小米的SSH功能到工具箱|添加备份功能支持|0.0.2|DropBear|linux_arm,linux_mips
|
||||
easyexplorer|一款跨设备的P2P文件同步工具||0.0.2|EasyExplorer|linux_arm,linux_x86_64,darwin_x86_64
|
||||
@@ -17,6 +17,7 @@ koolproxy|简单,快速屏蔽网页或视频广告|去掉openssl程序,采
|
||||
miwifi|小米路由器系统管理,修改samba禁用系统更新等|现在修复小米路由器远程访问会自动开放8098端口|0.0.4|MIWIFI|linux_arm,linux_mips
|
||||
mixbox|一款支持多平台,多架构的Shell工具箱|修复由于mbdb导致frpc配置无法识别的bug|0.0.6|MIXBOX|linux_arm,linux_mips,linux_x86_64,darwin_x86_64
|
||||
ngrok|轻量级的内网穿透工具||0.0.2|Ngrok|linux_arm,linux_mips
|
||||
npc|一款轻量级、高性能、功能强大的内网穿透代理服务器||0.0.2|NPC|linux_arm,linux_mips
|
||||
pptpd|简单但并不安全的VPN服务器||0.0.2|PPTPD|linux_arm,linux_mips,linux_x86_64
|
||||
qiandao|koolshare merlin 自动签到程序||0.0.2|QianDao|linux_arm,linux_x86_64
|
||||
shadowsocks|最好的翻墙工具,没有之一,还可以加速国内外游戏|修复kcptun配置错误|0.1.1|ShadowSocks|linux_arm,linux_mips,linux_x86_64
|
||||
|
||||
@@ -3,5 +3,5 @@ appname="aria2"
|
||||
needver="0.0.1"
|
||||
supports="linux_arm,linux_mips,linux_x86_64"
|
||||
appinfo="Linux下一款高效的下载工具"
|
||||
newinfo="更新aria2web页面,修复日志问题"
|
||||
version="0.0.3"
|
||||
newinfo="解决BT无法全速下载问题:DHT 缓存目录配置,感谢@itfsw"
|
||||
version="0.0.4"
|
||||
|
||||
BIN
apps/npc/bin/npc_linux_arm
Executable file
BIN
apps/npc/bin/npc_linux_arm
Executable file
Binary file not shown.
BIN
apps/npc/bin/npc_linux_mips
Executable file
BIN
apps/npc/bin/npc_linux_mips
Executable file
Binary file not shown.
21
apps/npc/config/mixbox.conf
Normal file
21
apps/npc/config/mixbox.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
#------------------【NPC】--------------------
|
||||
npc() {
|
||||
|
||||
eval `mbdb export npc`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
echo "********* $service ***********"
|
||||
echo "[${appinfo}]"
|
||||
readsh "启动${appname}服务[1/0] " "enable" "1"
|
||||
if [ "$enable" == '1' ]; then
|
||||
# Scripts Here
|
||||
readsh "请输入npc连接命令:" "connect_cmd"
|
||||
|
||||
# readsh "请输入${appname}外网访问配置[1/0]" "openport" "0"
|
||||
readsh "重启${appname}服务[1/0] " "res" "1"
|
||||
[ "$res" = '1' -o -z "$res" ] && ${mbroot}/apps/${appname}/scripts/${appname}.sh restart
|
||||
else
|
||||
${mbroot}/apps/${appname}/scripts/${appname}.sh stop
|
||||
fi
|
||||
|
||||
}
|
||||
#------------------【NPC】--------------------
|
||||
7
apps/npc/config/npc.uci
Normal file
7
apps/npc/config/npc.uci
Normal file
@@ -0,0 +1,7 @@
|
||||
service="NPC"
|
||||
appname="npc"
|
||||
needver="0.0.1"
|
||||
backupfiles=""
|
||||
supports="linux_arm,linux_mips"
|
||||
appinfo="一款轻量级、高性能、功能强大的内网穿透代理服务器"
|
||||
newinfo=""
|
||||
68
apps/npc/scripts/npc.sh
Normal file
68
apps/npc/scripts/npc.sh
Normal file
@@ -0,0 +1,68 @@
|
||||
#!/bin/sh
|
||||
eval `mbdb export npc`
|
||||
source "$(mbdb get mixbox.main.path)"/bin/base
|
||||
port=""
|
||||
|
||||
start() {
|
||||
|
||||
[ -n "$(pidof ${appname})" ] && logsh "【$service】" "${appname}已经在运行!" && exit 1
|
||||
logsh "【$service】" "正在启动${appname}服务... "
|
||||
# cru a "${appname}" "0 6 * * * ${mbroot}/apps/${appname}/scripts/${appname}.sh restart"
|
||||
# Scripts Here
|
||||
|
||||
# open_port
|
||||
# write_firewall_start
|
||||
[ -z "${connect_cmd}" ] && echo "连接命令未设置!" && end
|
||||
daemon cd ${mbroot}/apps/${appname}/bin && eval "${connect_cmd}"
|
||||
if [ $? -ne 0 ]; then
|
||||
logsh "【$service】" "启动${appname}服务失败!" && end
|
||||
else
|
||||
logsh "【$service】" "启动${appname}服务完成!"
|
||||
# logsh "【$service】" "请在浏览器打开地址:http://$lanip:$port"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
||||
logsh "【$service】" "正在停止${appname}服务... "
|
||||
[ "$enable" == '0' ] && destroy
|
||||
# close_port
|
||||
# remove_firewall_start
|
||||
killall -9 ${appname} &> /dev/null
|
||||
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
||||
# End app, Scripts here
|
||||
# cru d "${appname}"
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
end() {
|
||||
|
||||
mbdb set ${appname}.main.enable=0
|
||||
stop && exit 1
|
||||
|
||||
}
|
||||
|
||||
status() {
|
||||
|
||||
if [ -n "$(pidof ${appname})" ]; then
|
||||
status="运行中|1"
|
||||
else
|
||||
status="未运行|0"
|
||||
fi
|
||||
mbdb set ${appname}.main.status="$status"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start) start ;;
|
||||
stop) stop ;;
|
||||
restart) stop; start ;;
|
||||
reload) close_port && open_port ;;
|
||||
status) status ;;
|
||||
esac
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user