#!/bin/bash
dev="$1"
route -n | awk '$8=="'"$dev"'" && $4~/G/ { print $2 }'
