重命名为 zijidelu_install.sh 即可正常使用(本文件非压缩文件)
#!/bin/sh
showmsg () {
NO3_var=$3
NO4_var=$4
if [ ! "$NO3_var" ]; then
NO3_var=$color_yellow
fi
if [ ! "$NO4_var" ]; then
NO4_var=$color_white
fi
echo
echo -e $NO3_var$1$NO4_var
if [ "$2" ]; then
echo -e $NO3_var$2$NO4_var
fi
echo -e
}
color_cyan=" [40;36m"
color_red=" [40;31m"
color_yellow=" [40;33m"
color_green=" [40;32m"
color_white=" [40;37m"
if [ `uname` = 'FreeBSD' ]; then
file_get='fetch'
else
file_get='wget'
fi
echo $color_green
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "+"
echo "+ [2] USA download mirror"
echo "+ [1] China telecom download mirror"
echo "+ [0] Cancel."
echo "+"
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
showmsg "璇烽€夋嫨涓€涓笅杞界偣锛岀劧鍚庡洖杞︼紒" "Please select a download mirror and press enter! "
read mirror
echo $color_white
if [ "$mirror" = '1' ]; then
down="down"
elif [ "$mirror" = '2' ]; then
down="down3"
elif [ "$mirror" = '3' ]; then
down="down3"
elif [ "$mirror" = '0' ]; then
exit;
elif [ "$mirror" = '' ]; then
down="down"
fi
if [ ! -f "./zijidelu_install.tar.gz" ] && [ ! -d "./zijidelu_install" ]; then
showmsg "寮€濮嬩笅杞絲ijidelu_install.tar.gz" "Starting download zijidelu_install.tar.gz"
sleep 2
`${file_get} http://${down}.zijidelu.org/zijidelu_install.tar.gz`
if [ ! -e "./zijidelu_install.tar.gz" ]; then
showmsg "zijidelu_install.tar.gz涓嬭浇澶辫触" "Can't to download zijidelu_install.tar.gz"
exit
fi
fi
tar -zxvf zijidelu_install.tar.gz
cd ./zijidelu_install
if [ "$1" = '-y' ] || [ "$1" = '-Y' ]; then
./i.sh -y ${down}
else
./i.sh '' "${down}"
fi
zijidelu_install.sh.rar 1.62KB
版权所有:《太阳花工作室》 => 《自己的路1.1.9面板》
本文地址:http://bg.artuion.com/linux/52.html
除非注明,文章均为 《太阳花工作室》 原创,欢迎转载!转载请注明本文地址,谢谢。