Skip to content

Commit

Permalink
Merge pull request #4 from logicethos/patch-1
Browse files Browse the repository at this point in the history
Fix operstates network state
  • Loading branch information
fcojean authored Oct 30, 2017
2 parents f8c013c + fe5a5d8 commit 3294ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3294ccb

Please sign in to comment.