forked from ImAnyOne/SSR-Bash-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssr
45 lines (37 loc) · 1.02 KB
/
ssr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#Check Root
[ $(id -u) != "0" ] && { echo "Error: You must be root to run this script"; exit 1; }
echo "欢迎使用 SSR-Bash (Python Base) Author:Kirito 雨落无声"
echo 'Function Club 无限期停更说明'
echo 'https://www.ixh.me/2017/05/function-club-stop/'
echo "输入数字选择功能:"
echo ""
echo "1.服务器控制"
echo "2.用户管理"
echo "3.全局流量管理"
echo "4.实验性功能"
echo "5.程序自检"
while :; do echo
read -p "请选择: " choice
if [[ ! $choice =~ ^[1-5]$ ]]; then
echo "输入错误! 请输入正确的数字!"
else
break
fi
done
if [[ $choice == 1 ]];then
bash /usr/local/SSR-Bash-Python/server.sh
fi
if [[ $choice == 2 ]];then
bash /usr/local/SSR-Bash-Python/user.sh
fi
if [[ $choice == 3 ]];then
bash /usr/local/SSR-Bash-Python/traffic.sh
fi
if [[ $choice == 4 ]];then
bash /usr/local/SSR-Bash-Python/dev.sh
fi
if [[ $choice == 5 ]];then
bash /usr/local/SSR-Bash-Python/self-check.sh
fi