Changeset 27670 for branches/backfire


Ignore:
Timestamp:
2011-07-18T00:43:05+02:00 (5 years ago)
Author:
jow
Message:

[backfire] merge r27669

Location:
branches/backfire/package/pptp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/pptp/Makefile

    r23299 r27670  
    11# 
    2 # Copyright (C) 2006-2008 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=pptp 
    1111PKG_VERSION:=1.7.1 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    2323  TITLE:=PPTP client 
    2424  URL:=http://pptpclient.sourceforge.net/ 
    25   DEPENDS:=+ppp +kmod-gre 
     25  DEPENDS:=+ppp +kmod-gre +resolveip 
    2626endef 
    2727 
  • branches/backfire/package/pptp/files/pptp.sh

    r21594 r27670  
    99stop_interface_pptp() { 
    1010        stop_interface_ppp "$1" 
     11        for ip in $(uci_get_state network "$1" serv_addrs); do 
     12                route del -host "$ip" 2>/dev/null 
     13        done 
    1114} 
    1215 
     
    4043        local gw="$(find_gw)" 
    4144        [ -n "$gw" ] && { 
    42                 [ "$gw" != 0.0.0.0 ] && route delete "$server" 2>/dev/null >/dev/null 
    43                 route add "$server" gw "$gw" 
     45                local serv_addrs="" 
     46                for ip in $(resolveip -4 -t 3 "$server"); do 
     47                        append serv_addrs "$ip" 
     48                        route delete -host "$ip" 2>/dev/null 
     49                        route add -host "$ip" gw "$gw" 
     50                done 
     51                uci_toggle_state network "$config" serv_addrs "$serv_addrs" 
    4452        } 
    4553 
Note: See TracChangeset for help on using the changeset viewer.