Skip to content

Commit

Permalink
Fix uplink detection
Browse files Browse the repository at this point in the history
  • Loading branch information
killerbees19 committed Sep 24, 2018
1 parent bda118c commit 8063a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/scripts/uplink.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

# Output interface name of active (IPv4) default routing.
ip -4 -o route get "8.8.8.8" | sed -r 's/^.+ dev ([A-Z0-9-]+) .+$/\1/i' | sed -r 's/^.+-//'
ip -4 -o route get "8.8.8.8" | sed -r 's/^.+ dev ([A-Z0-9.-]+) .+$/\1/i' | sed -r 's/^.+-//'

0 comments on commit 8063a88

Please sign in to comment.