Ticket #10820: pptp-stop.diff

File pptp-stop.diff, 397 bytes (added by Anton Ryzhov, 6 years ago)

/trunk/package/pptp/files/pptp.sh

  • pptp.sh

     
    77} 
    88 
    99stop_interface_pptp() { 
     10        serv_addrs=$(uci_get_state network "$1" serv_addrs) 
    1011        stop_interface_ppp "$1" 
    11         for ip in $(uci_get_state network "$1" serv_addrs); do 
     12        for ip in $serv_addrs; do 
    1213                route del -host "$ip" 2>/dev/null 
    1314        done 
    1415}