[chore] Minor formatting fixes (#7009)

Cf. <https://github.com/koreader/koreader/pull/6992>.
reviewable/pr6977/r1
Frans de Jonge 3 years ago committed by GitHub
parent 77ac32d4ac
commit db9b485e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

@ -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

Loading…
Cancel
Save