Update l2tp.sh

This commit is contained in:
starry
2025-12-17 19:36:30 +08:00
committed by GitHub
parent fdf4102605
commit ae8ecf4865

View File

@@ -25,6 +25,13 @@ check_root(){
echo -e "${Error} 当前非root用户(或没有root权限)无法继续操作请更换root用户或使用 ${Green_globa}sudo -i${Nc} 命令获取临时root权限。"
exit 1
fi
if [ ! -c "/dev/ppp" ]; then
echo -e "${Error} 警告: 当前内核不支持PPP无法安装L2TP。"
echo -e "${Tip} 当前内核版本: $(uname -r)"
echo -e "${Tip} 请更换为支持PPP的标准Linux内核。"
exit 1
fi
}
check_release(){