diff options
author | jim-p <jimp@pfsense.org> | 2011-07-06 13:17:43 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-07-06 13:17:43 -0400 |
commit | 152f57596ba1984bc3ce6c603093f4573fed30df (patch) | |
tree | 0c126479a49ecfa2856c941d216b2bbccf9099b2 | |
parent | 9622da26595d4788a383355b44b33eda8b7947af (diff) | |
download | pfsense-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-x | usr/local/sbin/ovpn-linkup | 2 |
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 |