This was litterally taken from the retroroot github repository as is. https://github.com/retroroot-linux/retroroot