summaryrefslogtreecommitdiffstats
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:17:43 -0400
commit152f57596ba1984bc3ce6c603093f4573fed30df (patch)
tree0c126479a49ecfa2856c941d216b2bbccf9099b2
parent9622da26595d4788a383355b44b33eda8b7947af (diff)
downloadpfsense-152f57596ba1984bc3ce6c603093f4573fed30df.zip
pfsense-152f57596ba1984bc3ce6c603093f4573fed30df.tar.gz
Fix test for tun device, -f fails because it's a char device, not a regular file. -e works.
-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