Skip to content

Conversation

@amrsoll
Copy link
Contributor

@amrsoll amrsoll commented Mar 24, 2021

I am currently using this shorthand to modify / add values into /boot/config.txt

It does rely on raspi-config to get the job done. I chose to go with raspi-config as it gets maintained to work with the newer RPi versions, and it either uncomments the relevant config line or it appends a line "intelligently". This can replace the usual sed commands

Obviously, it only works if the image is RaspiOS / Raspbian, otherwise it'd be missing raspi-config

@amrsoll amrsoll changed the title Shorthand func to modify /boot/config.txt Shorthand function to modify /boot/config.txt Mar 24, 2021
@guysoft guysoft merged commit d93a54e into guysoft:devel Mar 25, 2021
@guysoft
Copy link
Owner

guysoft commented Mar 25, 2021

Also added to wiki page recently created here:
https://github.com/guysoft/CustomPiOS/wiki/Common.sh-functions|

You are welcome to add more documentation there if you'd like to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants