diff options
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init index f8e611f..7b444a1 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init @@ -107,6 +107,10 @@ gettime() { echo ${BASH_REMATCH[1]} } wait_for_supercap() { + if ! [[ -f ${sysdir}/capability/supercap ]] ; then + # Driver not loaded, maybe EEPROM not set + return + fi supercap=$(mts-io-sysfs show capability/supercap 2>/dev/null) if ((supercap != 1)) ; then return |