diff options
author | John Klug <john.klug@multitech.com> | 2019-01-15 16:52:18 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-07-03 11:22:01 -0500 |
commit | bd282b9ca665b7cd7bb7269fb565634669ac5fc6 (patch) | |
tree | 4df2b96393fdffa94e63ee8534440a74fa058780 /recipes-bsp | |
parent | 40e0aa614067cb05eea5f552f16f83365fd93be8 (diff) | |
download | meta-multitech-bd282b9ca665b7cd7bb7269fb565634669ac5fc6.tar.gz meta-multitech-bd282b9ca665b7cd7bb7269fb565634669ac5fc6.tar.bz2 meta-multitech-bd282b9ca665b7cd7bb7269fb565634669ac5fc6.zip |
Set /dev/gps0, even if gps capability flag is false.
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.init | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index b7fda14..705f84d 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -215,10 +215,11 @@ mfser_init() { set_gpslink() { gpscap=$(cat ${sysdir}/capability/gps) - if ((gpscap == 0)) ; then + # For all hardware except MTCDTIPHP, the gpscapability + # flag indicates whether or not we have a GPS. + if ! [[ ${hw_name} =~ ^MTCDTIPHP$ ]] && ((gpscap == 0)) ; then return fi - if [[ ${hw} == MTRV1-0.2 ]] ; then ln -sf /dev/ttyXRUSB0 /dev/gps0 return |