diff --git a/frontend/device/remarkable/device.lua b/frontend/device/remarkable/device.lua index 5d896e527..5c2030f81 100644 --- a/frontend/device/remarkable/device.lua +++ b/frontend/device/remarkable/device.lua @@ -167,7 +167,7 @@ end local f = io.open("/sys/devices/soc0/machine") if not f then error("missing sysfs entry for a remarkable") end -local deviceType = f:read("*line") +local deviceType = f:read("*line") f:close() logger.info("deviceType: ", deviceType) diff --git a/platform/remarkable/koreader.sh b/platform/remarkable/koreader.sh index 57e75f992..3fc2f9a10 100755 --- a/platform/remarkable/koreader.sh +++ b/platform/remarkable/koreader.sh @@ -7,9 +7,9 @@ KOREADER_DIR="${0%/*}" cd "${KOREADER_DIR}" || exit # reMarkable 2 check -IFS= read -r MACHINE_TYPE < "/sys/devices/soc0/machine" -if [ "reMarkable 2.0" = "$MACHINE_TYPE" ]; then - if [ -z "$RM2FB_SHIM" ]; then +IFS= read -r MACHINE_TYPE <"/sys/devices/soc0/machine" +if [ "reMarkable 2.0" = "${MACHINE_TYPE}" ]; then + if [ -z "${RM2FB_SHIM}" ]; then echo "reMarkable 2 requires RM2FB to work, visit https://github.com/ddvk/remarkable2-framebuffer for instructions how to setup" exit 1 fi