pmaports/device/community/device-pine64-pinephone/gpsd_device-hook.sh
Bart Ribbers 557a83d1ca
pine64-pinephone: move to community (MR 1175)
[ci:skip-build]: already built successfully in CI
2020-05-17 15:00:12 +02:00

10 lines
229 B
Bash

#!/bin/sh
if [ "$2" == "ACTIVATE" ]; then
echo "AT+QGPS=1" | atinout - /dev/EG25.AT -
elif [ "$2" == "DEACTIVATE" ]; then
echo "AT+QGPSEND" | atinout - /dev/EG25.AT -
else
echo "Unhandled argument: $2"
exit 1
fi