diff --git a/chntunnel/chntunnel.sh b/chntunnel/chntunnel.sh index 68804a8..0585059 100644 --- a/chntunnel/chntunnel.sh +++ b/chntunnel/chntunnel.sh @@ -190,7 +190,7 @@ if [ $# != 0 ]; then peer=$(ip addr | grep peer | grep inet | awk -F ' ' {'print $4'}) PEER_INNER_IPADDR=${peer%%/*} :>/etc/sysconfig/static-routes - grep $local_table /etc/iproute2/rt_tables && result=$? + grep $local_table /etc/iproute2/rt_tables >/dev/null && result=$? [[ $result != '0' ]] && echo "200 $local_table" >>/etc/iproute2/rt_tables #grep $local_table /etc/rc.local && result=$? #[[ $result != '0' ]] && addRoutes $local_table $local_gw $local_dev $local_addr && chmod +x /etc/rc.local && /etc/rc.local