Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/7'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Apr 1, 2020
2 parents 2d1fa69 + 870cd13 commit 7dc9ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/grml-network
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ main(){
STATUS=""
GW="$(echo $(route -n | awk '/^0\.0\.0\.0/{print $2}'))"
GWDEV="$(echo $(route -n | awk '/^0\.0\.0\.0/{print $NF}'))"
NMAP="$(nmap -sP --host_timeout 4000 --max_rtt_timeout 4000ms $GW 2>/dev/null)"
NMAP="$(nmap -sP --host-timeout 4 --max-rtt-timeout 4 $GW 2>/dev/null)"

if [ $? -eq 0 ]; then
if ! echo "$NMAP" | grep -q '0 hosts up' ; then
Expand Down

0 comments on commit 7dc9ce8

Please sign in to comment.