From d263d2893d9dab2227e4c705033f93d072b70a72 Mon Sep 17 00:00:00 2001 From: fencerJP <33802486+fencerJP@users.noreply.github.com> Date: Mon, 4 Dec 2017 01:13:26 +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 --- LCD7B-show | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LCD7B-show b/LCD7B-show index a66f8bd..391937b 100644 --- a/LCD7B-show +++ b/LCD7B-show @@ -1,5 +1,9 @@ sudo cp -rf ./boot/config-7B-800x480.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