#!/bin/bash # Enable nmea mode mmcli -m any --location-enable-gps-nmea # Show the status of gps while true; do mmcli -m any --location-get sleep 1 done