exit 0
fi
-LS_TMP='/bin/ls -al /tmp/'
-WIFI_FIRMWARE_LOADED='wifi-firmware-loaded'
-BT_FIRMWARE_LOADED='bt-firmware-loaded'
-if !(${LS_TMP} | grep ${WIFI_FIRMWARE_LOADED}); then
- if !(${LS_TMP} | grep ${BT_FIRMWARE_LOADED}); then
- echo "Executing cp2-downloader"
- /hal/bin/cp2-downloader
- /bin/touch /tmp/.bt-firmware-loaded
- fi
-fi
-
/usr/sbin/rfkill unblock bluetooth
echo "Bluetooth device is DOWN"