rename config.txt file to diya-config.txt to avoid conflict wuth rpi

This commit is contained in:
DanyLE
2025-03-27 11:57:29 +01:00
parent 8791a5d86d
commit 7b75b29500
4 changed files with 8 additions and 8 deletions

View File

@ -7,15 +7,15 @@ fi
. /etc/profile
if [ ! -e /boot/config.txt ]; then
if [ ! -e /boot/diya-config.txt ]; then
# prepare env for recovery boot
cat << EOF > /boot/config.txt
cat << EOF > /boot/diya-config.txt
recovery=true
recovery_image=recovery-${MACHINE}.cpio.gz
EOF
else
sed -i 's/^.*recovery.*/recovery=true/g' /boot/config.txt || \
echo "recovery=true" >> /boot/config.txt
sed -i 's/^.*recovery.*/recovery=true/g' /boot/diya-config.txt || \
echo "recovery=true" >> /boot/diya-config.txt
fi
echo "Rebooting to recovery mode"
reboot