pmaports/device/testing/device-pine64-pinephone/gpsd_device-hook.sh
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +01: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