I am working on a script that needs to access raspi-config at "Interface Options > I2C" directly. Is there a way to do this at the command line ?
Thanks
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this community
grep nonint $(which raspi-config)
does point the way to such functionality, so probably no hackyness required, which brings it back on-topic I think. All apologies.raspi-config
. Some of them have[s]printf
style substitutions in them (eg%d
) which are placeholders for an additional argument to the invocation. The other ones aren't concatenated (probably -- I only checked a few) so you should be able to use them verbatim (eg.raspi-config nonint do_boot_behaviour B1
). Most of the ones that don't have dynamic args are for getting current settings tho. So for case in point here you'd have to look atraspi-config
to find out what the valid args are forraspi-config nonint do_i2c %d
<- integer.raspi-config
if you follow the script parameters starting withnonint
, etc. They of course have not bothered documenting this AFAICT: github.com/RPi-Distro/raspi-config @FedeKrum If this all isn't clear to you leave a comment and I could come up with an answer; otherwise please add one yourself when you get the details sorted.