Thank you for your donation!


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


Idea: Include moodecfg.txt on ISO
#18
Maybe this:
Code:
sed '0,/^dtoverlay=/{/^dtoverlay=/d}' /boot/config.txt

It will remove only the first line with dtoverlay=
So if you keep all the custom dtoverlay after the dtoverlay from device, it should be good.

Before:
Code:
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=i-sabre-q2m
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
dtparam=spi=on
arm_freq=1000
sdram_freq=500
core_freq=400
gpu_freq=300
arm_64bit=1

#---------------------------
# CUSTOM OVERLAYS AFTER HERE
#---------------------------

dtoverlay=gpio-ir,gpio_pin=4

After:
Code:
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
dtparam=spi=on
arm_freq=1000
sdram_freq=500
core_freq=400
gpu_freq=300
arm_64bit=1

#---------------------------
# CUSTOM OVERLAYS AFTER HERE
#---------------------------

dtoverlay=gpio-ir,gpio_pin=4
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: