|
|
@ -8,7 +8,7 @@ cyan='\e[96m' |
|
|
|
none='\e[0m' |
|
|
|
none='\e[0m' |
|
|
|
|
|
|
|
|
|
|
|
# Root |
|
|
|
# Root |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
[[ $(id -u) != 0 ]] && echo -e "\n 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}\n" && exit 1 |
|
|
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
|
|
@ -19,7 +19,11 @@ if [[ $sys_bit == "i386" || $sys_bit == "i686" ]]; then |
|
|
|
elif [[ $sys_bit == "x86_64" ]]; then |
|
|
|
elif [[ $sys_bit == "x86_64" ]]; then |
|
|
|
v2ray_bit="64" |
|
|
|
v2ray_bit="64" |
|
|
|
else |
|
|
|
else |
|
|
|
echo -e " 哈哈……这个 ${red}辣鸡脚本${none} 不支持你的系统。 ${yellow}(-_-) ${none}" && exit 1 |
|
|
|
echo -e " |
|
|
|
|
|
|
|
哈哈……这个 ${red}辣鸡脚本${none} 不支持你的系统。 ${yellow}(-_-) ${none} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
备注: 仅支持 Ubuntu 16+ / Debian 8+ / CentOS 7+ 系统 |
|
|
|
|
|
|
|
" && exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# 笨笨的检测方法 |
|
|
|
# 笨笨的检测方法 |
|
|
@ -33,7 +37,11 @@ if [[ -f /usr/bin/apt-get || -f /usr/bin/yum ]] && [[ -f /bin/systemctl ]]; then |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
echo -e " 哈哈……这个 ${red}辣鸡脚本${none} 不支持你的系统。 ${yellow}(-_-) ${none}" && exit 1 |
|
|
|
echo -e " |
|
|
|
|
|
|
|
哈哈……这个 ${red}辣鸡脚本${none} 不支持你的系统。 ${yellow}(-_-) ${none} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
备注: 仅支持 Ubuntu 16+ / Debian 8+ / CentOS 7+ 系统 |
|
|
|
|
|
|
|
" && exit 1 |
|
|
|
|
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|