@blackmagik

Create below file and put in your command
/recalbox/share/system/custom.sh

Make it executable
chmod +x custom.sh

/recalbox/share/system/custom.sh (if exists) is ran at boot.