Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5938

Raspberry Pi OS • Re: /boot/config.txt symlink changed to file

$
0
0
sed is used a lot in scripts to update config.txt.
Or perhaps it would be more correct to say ...
sed is used incorrectly in a lot in scripts to update config.txt.
I would characterise the design of 'sed' to not respect symlinks by default to be a bad choice, poor design, flawed thinking, utterly stupid.

But those who have used 'sudo sed' in their scripts to update 'config.txt' without thinking, without fully understanding the consequences of what they are doing, can't escape blame.

Some might say this is what happens when you allow 'sudo' to become considered as 'please'.

Does Linux not have some way to lock that symlinked file down so it can't be deleted, such that even 'sudo sed' can't replace it ?

Statistics: Posted by hippy — Wed Jan 31, 2024 11:30 am



Viewing all articles
Browse latest Browse all 5938

Trending Articles