summaryrefslogtreecommitdiff
path: root/recipes-core/multitech
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/multitech')
-rw-r--r--recipes-core/multitech/config/config.init5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-core/multitech/config/config.init b/recipes-core/multitech/config/config.init
index 6e642ae..ada4a75 100644
--- a/recipes-core/multitech/config/config.init
+++ b/recipes-core/multitech/config/config.init
@@ -34,6 +34,7 @@ wpa_supplicant.conf \
# File hidden so it is not removed on hardware reset
WIFITAR=".defaults2.tar.gz"
+GETCONFIG=/sbin/get-eeprom-device-config
mount_config() {
echo "Mounting ${CONFIG_DIR}"
@@ -65,7 +66,9 @@ case $1 in
start)
if ! [[ -f /run/config/device_info.json ]] ; then
[[ -d /run/config ]] || mkdir -m 755 -p /run/config
- /sbin/get-eeprom-device-info -t1 # Radio might not be found yet.
+ if [[ -x ${GETCONFIG} ]] ; then
+ ${GETCONFIG} -t1 # Radio might not be found yet.
+ fi
fi
# mount config if not already mounted
if ! grep -q "^${CONFIG_MTDB} " /proc/mounts; then