bug fix for OLDGW, use head instead of grep

When connect only with wireless, grep works bad