linux porting: check_gps