summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-06 13:17:43 -0400
committerjim-p <jimp@pfsense.org>2011-07-06 13:19:03 -0400
commitb7ca271f7e7e0c7e977f027f752dccc3b19bf63e (patch)
tree2134be4017336419f536c860a92f58501078be61 /usr/local/sbin
parent292b356f8cdaf26b919009f1a1bc51a1ea02166f (diff)
downloadpfsense-b7ca271f7e7e0c7e977f027f752dccc3b19bf63e.zip
pfsense-b7ca271f7e7e0c7e977f027f752dccc3b19bf63e.tar.gz
Fix test for tun device, -f fails because it's a char device, not a regular file. -e works.
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/ovpn-linkup2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup
index 0f1ca80..3ebf32e 100755
--- a/usr/local/sbin/ovpn-linkup
+++ b/usr/local/sbin/ovpn-linkup
@@ -5,7 +5,7 @@
ifindex="${1##?????}"
-if [ -f /dev/tun$ifindex ]; then
+if [ -e /dev/tun$ifindex ]; then
if [ "" != "$route_vpn_gateway" ]; then
/bin/echo $route_vpn_gateway > /tmp/$1_router
else
OpenPOWER on IntegriCloud