Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Include moodecfg.txt on ISO
#26
Code:
$result = cfgdb_read('cfg_audiodev', cfgdb_connect(), $i2sDevice);
sysCmd('sed -i "s/dtparam=audio=on/dtparam=audio=off/" ' . '/boot/config.txt');
sysCmd('echo dtoverlay=' . $result[0]['driver'] . ' >> ' . '/boot/config.txt');

If instead of using echo we use sed in the last line:

Code:
sed -i '/dtparam=audio=off/a dtoverlay=test' /boot/config.txt

it will react the way you describe, the dtoverlay line will be added after dtparam=audio=off
Reply


Messages In This Thread
Include moodecfg.txt on ISO - by normand - 06-28-2020, 01:41 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 06-28-2020, 02:25 PM
RE: Include moodecfg.txt on ISO - by normand - 06-28-2020, 02:32 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 06-28-2020, 02:44 PM
RE: Include moodecfg.txt on ISO - by bitlab - 06-28-2020, 06:32 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 06-28-2020, 07:49 PM
RE: Include moodecfg.txt on ISO - by normand - 06-28-2020, 08:24 PM
RE: Include moodecfg.txt on ISO - by audiophonics - 01-28-2021, 11:41 AM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-28-2021, 01:11 PM
RE: Include moodecfg.txt on ISO - by audiophonics - 01-28-2021, 02:33 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-28-2021, 02:49 PM
RE: Include moodecfg.txt on ISO - by audiophonics - 01-28-2021, 03:14 PM
RE: Include moodecfg.txt on ISO - by chano22000 - 01-28-2021, 06:37 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-28-2021, 07:16 PM
RE: Include moodecfg.txt on ISO - by bitlab - 01-28-2021, 08:52 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-28-2021, 10:13 PM
RE: Include moodecfg.txt on ISO - by TookaFace - 01-28-2021, 11:15 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-28-2021, 11:26 PM
RE: Include moodecfg.txt on ISO - by TookaFace - 01-28-2021, 11:32 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-29-2021, 01:39 AM
RE: Include moodecfg.txt on ISO - by audiophonics - 01-29-2021, 11:35 AM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-29-2021, 12:28 PM
RE: Include moodecfg.txt on ISO - by TookaFace - 01-29-2021, 12:32 PM
RE: Include moodecfg.txt on ISO - by Tim Curtis - 01-29-2021, 12:42 PM
RE: Include moodecfg.txt on ISO - by TookaFace - 01-29-2021, 12:58 PM

Forum Jump: