mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[chore] Minor formatting fixes (#7009)
Cf. <https://github.com/koreader/koreader/pull/6992>.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user