fix bug x4.

master
livejq 2 years ago
parent 070773ba60
commit 53d671d28a
  1. 2
      chntunnel/chntunnel.sh

@ -190,7 +190,7 @@ if [ $# != 0 ]; then
peer=$(ip addr | grep peer | grep inet | awk -F ' ' {'print $4'}) peer=$(ip addr | grep peer | grep inet | awk -F ' ' {'print $4'})
PEER_INNER_IPADDR=${peer%%/*} PEER_INNER_IPADDR=${peer%%/*}
:>/etc/sysconfig/static-routes :>/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 [[ $result != '0' ]] && echo "200 $local_table" >>/etc/iproute2/rt_tables
#grep $local_table /etc/rc.local && result=$? #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 #[[ $result != '0' ]] && addRoutes $local_table $local_gw $local_dev $local_addr && chmod +x /etc/rc.local && /etc/rc.local

Loading…
Cancel
Save