diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-04-12 10:39:20 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-04-12 10:39:20 +0200 |
commit | 86966fba757f554967773f518ef707f461b84636 (patch) | |
tree | 90318ca3a7fe4151b851ec768055d095b8bc01be /usr/local/sbin/ovpn-linkup | |
parent | d68647a11a553ad6bec1993385196b4ecdba5a46 (diff) | |
parent | d7f4030ad861859312c20510bbe788be67c2454b (diff) | |
download | pfsense-86966fba757f554967773f518ef707f461b84636.zip pfsense-86966fba757f554967773f518ef707f461b84636.tar.gz |
Merge remote branch 'upstream/master'
Conflicts:
etc/inc/filter.inc
usr/local/www/themes/the_wall/rrdcolors.inc.php
Diffstat (limited to 'usr/local/sbin/ovpn-linkup')
-rwxr-xr-x | usr/local/sbin/ovpn-linkup | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup index 60489c2..613822c 100755 --- a/usr/local/sbin/ovpn-linkup +++ b/usr/local/sbin/ovpn-linkup @@ -2,7 +2,11 @@ # let the configuration system know that the ip has changed. #/usr/local/sbin/pfSctl -c "interface newip $interface" -/bin/echo $4 > /tmp/$1_router +if [ -n $route_vpn_gateway ]; then + /bin/echo $route_vpn_gateway > /tmp/$1_router +else + /bin/echo $4 > /tmp/$1_router +fi /usr/bin/touch /tmp/$1up # reload filter /usr/local/sbin/pfSctl -c "interface newip $1" |