Skip to content

Commit 3615afb

Browse files
committed
explicitly set DONT_VT_SWITCH_STATE in xorg conf in case the kernel is booted in
debug mode so that we can use CTRL+F1 to switch to a console.
1 parent d4fcd58 commit 3615afb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

buildroot-external/rootfs-overlay/etc/init.d/S42LoadNetFiles

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ setup_xconf() {
210210
if [[ -n "${SCREEN_OFF_TIME}" ]]; then
211211
sed -i "/Option .*OffTime/c\\\tOption \"OffTime\" \"${SCREEN_OFF_TIME}\"" /etc/X11/xorg.conf.d/10-serverlayout.conf
212212
fi
213+
if xargs -n1 -a /proc/cmdline | grep -q "^debug$"; then
214+
DONT_VT_SWITCH_STATE=FALSE
215+
fi
213216
if [[ -n "${DONT_VT_SWITCH_STATE}" ]]; then
214217
sed -i "/Option .*DontVTSwitch/c\\\tOption \"DontVTSwitch\" \"${DONT_VT_SWITCH_STATE}\"" /etc/X11/xorg.conf.d/10-serverlayout.conf
215218
fi

0 commit comments

Comments
 (0)