Skip to content

Commit

Permalink
delay the gpsd service restart after rtkrcv
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefal committed May 31, 2024
1 parent 082f35f commit 00b581e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/raw2nmea/raw2nmea.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi
sed -i s/^inpstr1-path.*/inpstr1-path\ \ =localhost:$RAW_PORT/ "${rtkbase_path}"/tools/raw2nmea/nmea_out.conf
sed -i s/^inpstr1-format.*/inpstr1-format\ \ =$RAW_FORMAT/ "${rtkbase_path}"/tools/raw2nmea/nmea_out.conf
sed -i s/^outstr1-path.*/outstr1-path\ \ =localhost:$NMEA_PORT/ "${rtkbase_path}"/tools/raw2nmea/nmea_out.conf

sed -i 's/^DEVICES=.*/DEVICES="tcp:\/\/localhost:'$NMEA_PORT'"/' /etc/default/gpsd
systemctl restart gpsd

{ sleep 20 ; systemctl restart gpsd ;} &
rtkrcv -o "${rtkbase_path}"/tools/raw2nmea/nmea_out.conf -nc

0 comments on commit 00b581e

Please sign in to comment.