Fixing up network config and adding an early script for ubuntu