mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-04-19 12:57:16 +00:00
Raspberry Pi (all): autoremove empty lines from /boot/config.txt
This commit is contained in:
parent
0ced6e591d
commit
97fd3cc6ec
@ -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
|
||||
|
||||
|
@ -4,4 +4,3 @@
|
||||
mkdir /system
|
||||
mount /dev/mmcblk0p2 /system
|
||||
/system/bin/busybox insmod /system/lib/modules/*/kernel/fs/nls/nls_cp437.ko
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/00 0x22000000 0x/00 - 0x/' /boot/boot.ini
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/00 0x13000000 0x/00 - 0x/' /boot/boot.ini
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/00 0x42000000 0x/00 - 0x/' /boot/boot.ini
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/initrd_filename=/#initrd_filename=/' /boot/uEnv.txt
|
||||
|
||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/^initramfs.*//g' /boot/config.txt
|
||||
|
||||
sed -i '/^ *$/d' /boot/config.txt # Remove blank lines
|
||||
|
@ -2,4 +2,3 @@
|
||||
|
||||
echo >> /boot/config.txt
|
||||
echo "initramfs initrd.gz" >> /boot/config.txt
|
||||
|
||||
|
@ -7,4 +7,3 @@ fi
|
||||
|
||||
old_boot=$1
|
||||
cp ${old_boot}/config.txt /boot
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user