diff --git a/overlay/etc/default/gpsd b/overlay/etc/default/gpsd new file mode 100644 index 0000000..e1f6363 --- /dev/null +++ b/overlay/etc/default/gpsd @@ -0,0 +1,4 @@ +START_DAEMON="true" +USBAUTO="false" +DEVICES="/dev/et-gps" +GPSD_OPTIONS="-n" diff --git a/overlay/lib/systemd/system/gpsd.service b/overlay/lib/systemd/system/gpsd.service new file mode 100644 index 0000000..e3ba29a --- /dev/null +++ b/overlay/lib/systemd/system/gpsd.service @@ -0,0 +1,14 @@ +[Unit] +Description=GPS (Global Positioning System) Daemon +Requires=gpsd.socket +After=chronyd.service +ConditionPathExists=/dev/et-gps + +[Service] +Type=forking +EnvironmentFile=/etc/default/gpsd +ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES + +[Install] +WantedBy=multi-user.target +Also=gpsd.socket