Raspberry Pi (all): autoremove empty lines from /boot/config.txt

This commit is contained in:
Calin Crisan 2020-03-23 18:54:56 +02:00
parent 0ced6e591d
commit 97fd3cc6ec
10 changed files with 1 additions and 9 deletions

View File

@ -4,4 +4,3 @@ if [ -f /boot/boot-normal.scr ]; then
mv /boot/boot.scr /boot/boot-fwupdater.scr
mv /boot/boot-normal.scr /boot/boot.scr
fi

View File

@ -4,4 +4,3 @@
mkdir /system
mount /dev/mmcblk0p2 /system
/system/bin/busybox insmod /system/lib/modules/*/kernel/fs/nls/nls_cp437.ko

View File

@ -1,4 +1,3 @@
#!/bin/sh
sed -i 's/00 0x22000000 0x/00 - 0x/' /boot/boot.ini

View File

@ -1,4 +1,3 @@
#!/bin/sh
sed -i 's/00 0x13000000 0x/00 - 0x/' /boot/boot.ini

View File

@ -1,4 +1,3 @@
#!/bin/sh
sed -i 's/00 0x42000000 0x/00 - 0x/' /boot/boot.ini

View File

@ -1,4 +1,3 @@
#!/bin/sh
sed -i 's/initrd_filename=/#initrd_filename=/' /boot/uEnv.txt

Binary file not shown.

View File

@ -1,4 +1,4 @@
#!/bin/sh
sed -i 's/^initramfs.*//g' /boot/config.txt
sed -i '/^ *$/d' /boot/config.txt # Remove blank lines

View File

@ -2,4 +2,3 @@
echo >> /boot/config.txt
echo "initramfs initrd.gz" >> /boot/config.txt

View File

@ -7,4 +7,3 @@ fi
old_boot=$1
cp ${old_boot}/config.txt /boot