mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-14 09:21:27 +00:00
2020-04-26 09:44:29
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
service="Aria2"
|
||||
appname="aria2"
|
||||
needver="0.1.7"
|
||||
backupfiles="config/aria2.conf"
|
||||
supports="linux_arm,linux_mips,linux_x86_64"
|
||||
appinfo="Linux下一款高效的下载工具"
|
||||
newinfo="支持x86_64设备"
|
||||
version="0.0.6"
|
||||
version="0.0.7"
|
||||
|
||||
@@ -69,7 +69,8 @@ get_applist() {
|
||||
update_applist() {
|
||||
|
||||
wgetsh ${mbtmp}/applist_tmp.txt $mburl/applist.txt
|
||||
if [ $? -eq 0 ]; then
|
||||
# 判断applist的内容,防止软件源异常
|
||||
if [ $? -eq 0 ] && [ -n `cat ${mbtmp}/applist_tmp.txt | grep -E "^mixbox"` ]; then
|
||||
rm -rf ${mbtmp}/applist.txt
|
||||
cat ${mbtmp}/applist_tmp.txt | grep "${model}" | sort -u | while read line; do
|
||||
local install_text=""
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
export PATH=$PATH:/etc/mixbox/bin
|
||||
|
||||
mburl_coding="https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/master"
|
||||
mburl_github="https://raw.githubusercontent.com/monlor/MIXBOX/master"
|
||||
mburl_github="https://raw.githubusercontent.com/monlor/mbfiles/master"
|
||||
# mburl_test="https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/test"
|
||||
mburl=$(mbdb get mixbox.main.url) || mburl="$mburl_coding"
|
||||
mbroot=$(mbdb get mixbox.main.path)
|
||||
|
||||
@@ -3,5 +3,5 @@ appname="mixbox"
|
||||
needver=""
|
||||
supports="linux_arm,linux_mips,linux_x86_64"
|
||||
appinfo="一款支持多平台,多架构的Shell工具箱"
|
||||
newinfo="修复base64命令段错误,升级后需要手工删除/etc/mixbox/bin/base64*"
|
||||
version="0.1.9.7"
|
||||
newinfo="修复插件列表为空的bug"
|
||||
version="0.1.9.8"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
#copyright by monlor
|
||||
[ -n "$(uci -q get monlor.tools 2> /dev/null)" ] && echo "工具箱版本过低,此更新程序已不再支持,请执行[$(uci -q get monlor.tools.path)/scripts/uninstall.sh]卸载工具箱后重新安装新的版本!" && exit 1
|
||||
source /etc/mixbox/bin/base
|
||||
|
||||
logsh "【Tools】" "正在更新工具箱程序... "
|
||||
@@ -27,15 +26,15 @@ cp -rf ${mbtmp}/mixbox/* ${mbroot}/
|
||||
|
||||
logsh "【Tools】" "处理工具箱文件"
|
||||
# 处理工具箱二进制文件
|
||||
ln -sf ${mbroot}/bin/base64-encode ${mbroot}/bin/base64-decode
|
||||
ln -sf ${mbroot}/bin/base64-encode ${mbroot}/bin/base64-decode
|
||||
|
||||
logsh "【Tools】" "赋予可执行权限"
|
||||
chmod -R +x ${mbroot}/bin
|
||||
chmod -R +x ${mbroot}/scripts
|
||||
|
||||
# 执行初始化脚本
|
||||
|
||||
# ${mbroot}/scripts/init.sh
|
||||
# 清理工作
|
||||
logsh "【Tools】" "一点点清理工作..."
|
||||
rm -rf ${mbroot}/bin/base64*
|
||||
|
||||
if [ -z "$(mbdb get mixbox.main.model)" ]; then
|
||||
model=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]')
|
||||
|
||||
@@ -5,5 +5,5 @@ supports="linux_arm,linux_mips,linux_x86_64"
|
||||
openport="1"
|
||||
backupfiles="config/ssserver.conf,config/sscontrol.conf,config/customize_black.conf,config/customize_white.conf"
|
||||
appinfo="最好的翻墙工具,没有之一,还可以加速国内外游戏"
|
||||
newinfo="修改obfs-local问题"
|
||||
version="0.1.5"
|
||||
newinfo="v2ray软件源失效可用"
|
||||
version="0.1.6"
|
||||
|
||||
@@ -13,14 +13,17 @@ eval `mbdb export shadowsocks`
|
||||
get_v2ray_bin() {
|
||||
result1=$(curl -skL $mburl/appsbin/v2ray-bin/$model/lastest.txt) &> /dev/null
|
||||
result2=$(${mbroot}/apps/${appname}/bin/v2ray -version | head -1 | cut -d' ' -f2) &> /dev/null
|
||||
[ -z "$result1" ] && logsh "【$service】" "获取v2ray在线版本失败,请检查网络!" && exit 1
|
||||
logsh "【$service】" "检测v2ray版本,本地版本:$result2,在线版本:$result1"
|
||||
if [ "$result1" != "$result2" ]; then
|
||||
logsh "【$service】" "版本不一致,正在更新..."
|
||||
wgetsh ${mbroot}/apps/${appname}/bin/v2ray $mburl/appsbin/v2ray-bin/$model/v2ray
|
||||
wgetsh ${mbroot}/apps/${appname}/bin/v2ctl $mburl/appsbin/v2ray-bin/$model/v2ctl
|
||||
chmod +x ${mbroot}/apps/${appname}/bin/v2ray
|
||||
chmod +x ${mbroot}/apps/${appname}/bin/v2ctl
|
||||
if [ -z "$result1" ]; then
|
||||
logsh "【$service】" "获取v2ray在线版本失败,请检查网络!"
|
||||
else
|
||||
logsh "【$service】" "检测v2ray版本,本地版本:$result2,在线版本:$result1"
|
||||
if [ "$result1" != "$result2" ]; then
|
||||
logsh "【$service】" "版本不一致,正在更新..."
|
||||
wgetsh ${mbroot}/apps/${appname}/bin/v2ray $mburl/appsbin/v2ray-bin/$model/v2ray
|
||||
wgetsh ${mbroot}/apps/${appname}/bin/v2ctl $mburl/appsbin/v2ray-bin/$model/v2ctl
|
||||
chmod +x ${mbroot}/apps/${appname}/bin/v2ray
|
||||
chmod +x ${mbroot}/apps/${appname}/bin/v2ctl
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user