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
This commit is contained in:
fencerJP 2017-12-04 01:10:32 +09:00 committed by GitHub
parent 3bc8e597bf
commit 4dbba1e363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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