Modified init.d file to wait for network startup