2019-01-05

This commit is contained in:
monlor
2019-01-05 20:12:34 +08:00
parent 32dd618ed6
commit 5a03c2a908
8 changed files with 6 additions and 2 deletions

View File

@@ -149,6 +149,8 @@ get_config() {
EOF
fi
fi
# 保存代理类型
mbdb set ${appname}.main.proxy_type="$proxy_type"
}
@@ -644,6 +646,8 @@ start() {
start_haveged
sleep 1
start_main_process
start_game_process
@@ -697,7 +701,7 @@ status() {
#if [ "$result" == '0' ] || [ "$http_status" != "200" ]; then
result2=$(iptables -t nat -S | grep SHADOWSOCK)
[ "$ssgena" == '1' ] && ssgflag=", 游戏节点: $ssgid($ssg_mode)"
if [ "$result1" -ge 2 ]; then
if [ "$result1" -ge 3 ]; then
if [ -n "$result2" ]; then
status="运行节点: $id($ss_mode)$ssgflag|1"
else

View File

@@ -17,7 +17,7 @@ logsh "【Tools】" "请按任意键安装工具箱(Ctrl + C 退出)."
read answer
#check root
# [ "$USER" != "root" ] && logsh "【Tools】" "请使用root用户安装工具箱" && exit 1
mburl="https://dev.tencent.com/u/monlor/p/MIXBOX-BETA/git/raw/master"
mburl="https://raw.githubusercontent.com/MIXBOX/master"
mbtmp="/tmp/mbtmp"
[ ! -d "${mbtmp}" ] && mkdir -p ${mbtmp}
model=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]')