Enable network-online at boot and removed dead code