summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"