Fix test for tun device, -f fails because it's a char device, not a regular file. -e works.

This commit is contained in:
jim-p 2011-07-06 13:17:43 -04:00
parent 292b356f8c
commit b7ca271f7e

View File

@ -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