Unfortunately not. In case of uboot, you can just erase the enviroment paritition, in which case it falls back to the build in defaults, which are in most cases right. You just need to manually change the mac address, in case it's stored in uboot environment.Any hints how to return it nearly stock state?
But this is barebox, and although it seems to be a derivative of uboot, I have no idea of the scripts in the environment filesystem are also stored in barebox itself.
BTW, it is strange that both you and Triu had a crippled barebox filesystem after changing some file. I wonder if there is a bug in (this version of) barebox which causes filesystem corruption.