summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-06-20 14:57:35 -0400
committerjim-p <jimp@pfsense.org>2011-06-20 14:57:35 -0400
commitc880d03296fd49776acc983664e17bee2792fbc3 (patch)
treea922db92bae125f11d46132ea0d6e4f99998d394 /usr
parent06bfdd53f6263fa1a0586daa58f2efbf79bde26c (diff)
downloadpfsense-c880d03296fd49776acc983664e17bee2792fbc3.zip
pfsense-c880d03296fd49776acc983664e17bee2792fbc3.tar.gz
Fix ovpn-linkup so it writes out the proper gateway IP in all cases.
(For some reason -n wasn't working properly, plus $5 is the right parameter for the remote IP here)
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/ovpn-linkup4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup
index 613822c..b613a9a 100755
--- a/usr/local/sbin/ovpn-linkup
+++ b/usr/local/sbin/ovpn-linkup
@@ -2,10 +2,10 @@
# let the configuration system know that the ip has changed.
#/usr/local/sbin/pfSctl -c "interface newip $interface"
-if [ -n $route_vpn_gateway ]; then
+if [ "" != "$route_vpn_gateway" ]; then
/bin/echo $route_vpn_gateway > /tmp/$1_router
else
- /bin/echo $4 > /tmp/$1_router
+ /bin/echo $5 > /tmp/$1_router
fi
/usr/bin/touch /tmp/$1up
# reload filter
OpenPOWER on IntegriCloud