From 4dbba1e363cb52350746dd67076c6e44130afadc Mon Sep 17 00:00:00 2001 From: fencerJP <33802486+fencerJP@users.noreply.github.com> Date: Mon, 4 Dec 2017 01:10:32 +0900 Subject: [PATCH] update for NOOBS users copied from lavolp3's solution if statement checks if NOOBS OS is present by checking for mmcblk0p7 block. Then another cmdline.txt is needed, otherwise system would crash with a kernel panic --- LCD7C-show | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LCD7C-show b/LCD7C-show index 1fb0550..56f9b76 100644 --- a/LCD7C-show +++ b/LCD7C-show @@ -1,5 +1,9 @@ sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt -sudo cp ./usr/cmdline.txt /boot/ +if [ -b /dev/mmcblk0p7 ]; then + sudo cp ./usr/cmdline.txt-noobs /boot/cmdline.txt +else + sudo cp ./usr/cmdline.txt /boot/ +fi sudo cp ./usr/inittab /etc/ sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo reboot