#!/bin/bash


dest=$(route | awk '{if($1=="default" && $2 != "*") print $1 "," $2}')

#echo "$dest"
if [ "$dest" != "" ]; then
  echo "GOOD_GATEWAY"
else
  echo "NO_GATEWAY"
fi

#gw=$(route | awk '{if($2!="*") print $2}')

#echo "data for eth0: $dest / $gw"
