2019-01-02

This commit is contained in:
monlor
2019-01-02 23:04:09 +08:00
parent bd4f2edcc2
commit 9e9303f44a
17 changed files with 5 additions and 3 deletions

View File

@@ -37,7 +37,9 @@ init() {
[ $? -ne 0 ] && logsh "【Tools】" "创建目录失败,检查你的路径是否正确!" && end [ $? -ne 0 ] && logsh "【Tools】" "创建目录失败,检查你的路径是否正确!" && end
umount -lf /opt > /dev/null 2>&1 umount -lf /opt > /dev/null 2>&1
mount -o blind $path /opt mount -o blind $path /opt
if [ "$model" = "linux_arm" ]; then if [ "$xq" = "R3" -o "$xq" = "R1CM" ]; then
wget -O - http://pkg.entware.net/binaries/mipsel/installer/installer.sh | sh
elif [ "$model" = "linux_arm" ]; then
if [ "$(uname -r | cut -d'.' -f1)" -ge '3' ]; then if [ "$(uname -r | cut -d'.' -f1)" -ge '3' ]; then
wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh
else else

View File

@@ -2,7 +2,7 @@
#copyright by monlor #copyright by monlor
export PATH=$PATH:/etc/mixbox/bin export PATH=$PATH:/etc/mixbox/bin
mburl_coding="https://qcloud.coding.net/u/monlor/p/MIXBOX/git/raw/master/install.sh" mburl_coding="https://dev.tencent.com/u/monlor/p/MIXBOX/git/raw/master"
mburl_github="https://raw.githubusercontent.com/monlor/MIXBOX/master" mburl_github="https://raw.githubusercontent.com/monlor/MIXBOX/master"
mburl=$(mbdb get mixbox.main.url) || mburl="$mburl_coding" mburl=$(mbdb get mixbox.main.url) || mburl="$mburl_coding"
mbroot=$(mbdb get mixbox.main.path) mbroot=$(mbdb get mixbox.main.path)

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.

View File

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