if [ "$cfg_usb_host" != "y" ] || [ ! -z "$(lsusb | grep "1d6b:0002")" ]; then
  switchToUsbDevice
else
  switchToUsbHost
  # the usb driver needs some time to initialize
  sleep 1
  if [ -z "$(lsusb | grep -v "1d6b:")" ]; then
    switchToUsbDevice
  fi
fi

checkExtStorage
