summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2023-04-26 12:41:16 -0500
committerJohn Klug <john.klug@multitech.com>2023-04-26 12:41:16 -0500
commit9d5804611ee107dad6076c73d64b17747d000833 (patch)
tree1af29736be7dbf1bc6b5a56087818ce8e6871b32
parent63e834718625144f8386d6556c9a107eea3d9628 (diff)
downloadmeta-mlinux-9d5804611ee107dad6076c73d64b17747d000833.tar.gz
meta-mlinux-9d5804611ee107dad6076c73d64b17747d000833.tar.bz2
meta-mlinux-9d5804611ee107dad6076c73d64b17747d000833.zip
gpsd_settime changed to use GNU date
-rwxr-xr-xrecipes-navigation/gpsd/gpsd/gpsd_settime.sh6
-rw-r--r--recipes-navigation/gpsd/gpsd_3.20.bb2
2 files changed, 6 insertions, 2 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd_settime.sh b/recipes-navigation/gpsd/gpsd/gpsd_settime.sh
index e8e8f26..7078de9 100755
--- a/recipes-navigation/gpsd/gpsd/gpsd_settime.sh
+++ b/recipes-navigation/gpsd/gpsd/gpsd_settime.sh
@@ -76,7 +76,11 @@ if (( ${#ISO8601} > 18 )) ; then
s=${BASH_REMATCH[6]}
fi
if ((${#Y} == 4 )) && ((${#M} > 0)) && ((${#D} > 0)) && ((${#h} > 0)) && ((${#m} > 0)) && ((${#s} > 0)) ; then
- date -u "${Y}.${M}.${D}-${h}:${m}:${s}" >/dev/null
+ if [[ $(readlink -f /bin/date) =~ busybox ]] ; then
+ date -u "${Y}.${M}.${D}-${h}:${m}:${s}" >/dev/null
+ else
+ date -u "${M}${D}${h}${m}${Y}.${s}" >/dev/null
+ fi
else
LG -p user.err "gpspipe output is bad or missing"
exit 1
diff --git a/recipes-navigation/gpsd/gpsd_3.20.bb b/recipes-navigation/gpsd/gpsd_3.20.bb
index cc8bd27..efab5c4 100644
--- a/recipes-navigation/gpsd/gpsd_3.20.bb
+++ b/recipes-navigation/gpsd/gpsd_3.20.bb
@@ -4,7 +4,7 @@ LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=01764c35ae34d9521944bb6ab312af53"
DEPENDS = "dbus dbus-glib ncurses python3 libusb1 chrpath-replacement-native pps-tools"
PROVIDES = "virtual/gpsd"
-PR="m10"
+PR="m11"
EXTRANATIVEPATH += "chrpath-native"