Skip to content

Commit

Permalink
Merge pull request #33 from freifunkMUC/awlx-patch-1
Browse files Browse the repository at this point in the history
Fix broken grep
  • Loading branch information
awlx authored Oct 9, 2022
2 parents c6d3e69 + 36b8614 commit 6470f63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [ "$(uci get wireguard.mesh_vpn.enabled)" == "true" ] || [ "$(uci get wiregua
# Check connectivity to supernode
wget http://[$(wg | grep fe80 | awk '{split($3,A,"/")};{print A[1]}')%$MESH_VPN_IFACE]/ --timeout=5 -O/dev/null -q
if [ "$?" -eq "0" ]; then
GWMAC=$(batctl gwl | grep \* | awk '{print $2}')
GWMAC=$(batctl gwl | awk '/[*]/{print $2}')
batctl ping -c 5 $GWMAC &> /dev/null
if [ "$?" -eq "0" ]; then
CONNECTED=1
Expand Down

0 comments on commit 6470f63

Please sign in to comment.