Fix Wireless Or Wired Network Not Working After Resume From Suspend In Ubuntu

It's time for another fix, this time for wired / wireless network not working after resume from suspend. In Ubuntu, sometimes when resuming from sleep, the wired network doesn't work and I keep getting "disconnected" notifications. I've read that some users are having similar issue with the wireless connection but for me, it's always the Ethernet connection.