mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix test for tun device, -f fails because it's a char device, not a regular file. -e works.
This commit is contained in:
parent
292b356f8c
commit
b7ca271f7e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user