del invaild opt
This commit is contained in:
28
v2ray.sh
28
v2ray.sh
@@ -10,7 +10,7 @@ none='\e[0m'
|
|||||||
# Root
|
# Root
|
||||||
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
|
||||||
|
|
||||||
_version="v3.50"
|
_version="v3.51"
|
||||||
|
|
||||||
cmd="apt-get"
|
cmd="apt-get"
|
||||||
|
|
||||||
@@ -2294,11 +2294,7 @@ other() {
|
|||||||
echo
|
echo
|
||||||
echo -e "$yellow 1. $none安装 BBR"
|
echo -e "$yellow 1. $none安装 BBR"
|
||||||
echo
|
echo
|
||||||
echo -e "$yellow 2. $none安装 LotServer(锐速)"
|
read -p "$(echo -e "请选择 [${magenta}1$none]:")" _opt
|
||||||
echo
|
|
||||||
echo -e "$yellow 3. $none卸载 LotServer(锐速)"
|
|
||||||
echo
|
|
||||||
read -p "$(echo -e "请选择 [${magenta}1-3$none]:")" _opt
|
|
||||||
if [[ -z $_opt ]]; then
|
if [[ -z $_opt ]]; then
|
||||||
error
|
error
|
||||||
else
|
else
|
||||||
@@ -2307,14 +2303,6 @@ other() {
|
|||||||
install_bbr
|
install_bbr
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
2)
|
|
||||||
install_lotserver
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
3)
|
|
||||||
uninstall_lotserver
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
error
|
error
|
||||||
;;
|
;;
|
||||||
@@ -2335,18 +2323,6 @@ install_bbr() {
|
|||||||
[[ ! $enable_bbr ]] && bash <(curl -s -L https://github.com/teddysun/across/raw/master/bbr.sh)
|
[[ ! $enable_bbr ]] && bash <(curl -s -L https://github.com/teddysun/across/raw/master/bbr.sh)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
install_lotserver() {
|
|
||||||
# https://moeclub.org/2017/03/08/14/
|
|
||||||
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh"
|
|
||||||
bash /tmp/appex.sh 'install'
|
|
||||||
rm -rf /tmp/appex.sh
|
|
||||||
}
|
|
||||||
uninstall_lotserver() {
|
|
||||||
# https://moeclub.org/2017/03/08/14/
|
|
||||||
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh"
|
|
||||||
bash /tmp/appex.sh 'uninstall'
|
|
||||||
rm -rf /tmp/appex.sh
|
|
||||||
}
|
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
while :; do
|
while :; do
|
||||||
|
Reference in New Issue
Block a user