@Lazar-Demin happened again, another power cut and the onion was factory restored.
To work around, I created an shell script which install and configure my system and I call it on "/etc/rc.local". This file still intact because I put he on "/etc/systemupgrade.conf".