Skip to content

Commit

Permalink
fix pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
poochiethecat committed Nov 1, 2016
1 parent 563e640 commit 88df48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wifi-ap/wifi-ap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface_connected() {
URL=$2
OPERSTATE=$(cat /sys/class/net/$INTERFACE/operstate)
OPTIONS="--interface $INTERFACE --head --silent $URL"
PATTERN="(2|3)0[0-9] OK"
PATTERN="(2|3)0[0-9] (OK|Found)"
if [ "$OPERSTATE" == "up" ] && curl $OPTIONS | egrep "$PATTERN" > /dev/null
then
return 0
Expand Down

0 comments on commit 88df48d

Please sign in to comment.