diff --git a/run.sh b/run.sh index c186eb46..a0298488 100644 --- a/run.sh +++ b/run.sh @@ -35,7 +35,7 @@ if [ -z "$VPN_NETWORK_INTERFACE" ]; then VPN_NETWORK_INTERFACE="eth0" fi -if [ `cat /sys/class/net/$VPN_NETWORK_INTERFACE/operstate` != "up" ]; then +if [ `cat /sys/class/net/$VPN_NETWORK_INTERFACE/operstate` == "down" ]; then echo "Network interface '$VPN_NETWORK_INTERFACE' is not available. Aborting." exit 1 fi