rework FLIP working from options.cfg

This commit is contained in:
Apaczer
2023-04-10 20:25:37 +02:00
committed by GitHub
parent 3b56bcdda6
commit 42ec8c273c
2 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
MODULES_CUSTOM=0
FAT_CHECK=1
BOOT_LOGO=1
FLIP=0
MODULES_CUSTOM=0
FAT_CHECK=1
BOOT_LOGO=1
FLIP= (put 0 or 1 to overwrite)
TVMODE=0

View File

@@ -71,7 +71,9 @@ gadget-ms /dev/mmcblk0p1 /dev/mmcblk0p4 >> "${LOGS}" 2>&1
# Load video module read from uEnv.txt & defined by variant in console.cfg
if (grep -q FLIP\=\1 "${HOME}/options.cfg"); then
modprobe $video $params flip=1
else
elif (grep -q FLIP\=\0 "${HOME}/options.cfg"); then
modprobe $video $params flip=0
else
modprobe $video $params
fi
fi