To change the code at the source you must do it PROPERLY,or at the least to seek assistance from those that know a bit about oscam.
There is no bandaids suggested,a bandaid would be a patch that doesn't address all the problems or do not fix it entirely.
If you would know how many scripts run in your dreambox that could be inserted in kernel,modules,devices and so on,you would not buy the box in the first place,following your own logic.
The truth is I am against to change the source unless the patch s really well thought out.
In America,there is a script for this already you will know eventually,but testers is not the place to find it.
Considering couple months ago you knew nothing about dreambox or oscam,by your own admission,it looks yours is the only solution it can ever be,apprently
I think I am clear.
Take my suggestions or not,coders write according to what they are able to imagine,this is why there is always someone more clever than us and can imagine simpler solutions.
giver