lineage_device_tree_xcoverpro/rootdir/bin/gps.sh

18 lines
434 B
Bash
Raw Permalink Normal View History

2023-06-18 22:49:28 +00:00
#! /vendor/bin/sh
SILENT_LOGGING_9900=/data/vendor/gps/silentGnssLogging
SILENT_LOGGING_ISSUETRACKER=/data/vendor/gps/silentGnssLoggingIssueTracker
CONFIGFILE=/vendor/etc/gnss/gps.cfg
DAEMONFILE=/vendor/bin/hw/gpsd
if [ -d "$SILENT_LOGGING_ISSUETRACKER" ] ; then
CONFIGFILE=/vendor/etc/gnss/gps.debug.cfg
fi
if [ -d "$SILENT_LOGGING_9900" ] ; then
CONFIGFILE=/vendor/etc/gnss/gps.debug.cfg
fi
exec $DAEMONFILE -c $CONFIGFILE