修复变量错误

Signed-off-by: hitsword <admin@hitsword.com>
master
hitsword 2020-03-04 22:02:58 +08:00
parent 1900e27122
commit 2e7b67057d
1 changed files with 9 additions and 9 deletions

View File

@ -13,16 +13,16 @@ if [[ -e /etc/debian_version ]]; then
RCLOCAL='/etc/rc.d/rc.local' RCLOCAL='/etc/rc.d/rc.local'
IPTABLES=`rpm -qa |grep iptables` IPTABLES=`rpm -qa |grep iptables`
else else
echo "只支持Debian\Ubuntu\CentOS系统" echo "只支持Debian\Ubuntu\CentOS系统"
exit exit
fi fi
#检查依赖IPTABLES #检查依赖IPTABLES
if [ "$IPTABLES" == '' ]; then if [ "$IPTABLES" == '' ]; then
if [[ "$OS" = 'debian' ]]; then if [[ "$OS" = 'debian' ]]; then
apt-get update apt-get update
apt-get install iptables -y apt-get install iptables -y
else else
yum install iptables -y yum install iptables -y
fi fi
fi fi
@ -36,9 +36,9 @@ fi
testFun() testFun()
{ {
echo $PASSWD echo $PASSWD
echo $IP echo $REMOTEIP
echo $RPORT echo $RPORT
echo $MPORT echo $MPORT
echo $LPORT echo $LPORT
} }
@ -52,7 +52,7 @@ case $RUNMODE in
1) 1)
read -p "Udp2Raw Password(Udp2Raw密码): " PASSWD read -p "Udp2Raw Password(Udp2Raw密码): " PASSWD
echo"" echo""
read -p "Remote Udp2Raw IP(Udp2Raw远程IP): " RIP read -p "Remote Udp2Raw IP(Udp2Raw远程IP): " REMOTEIP
echo"" echo""
while [[ ! "$RPORT" =~ [1-65535] ]];do while [[ ! "$RPORT" =~ [1-65535] ]];do
read -p "Remote Udp2Raw Port(Udp2Raw远程端口): " RPORT read -p "Remote Udp2Raw Port(Udp2Raw远程端口): " RPORT