I just tested a simple script (called "network_restar") to make NM
restart upon resume... and IT HAS WORKED!

Rather than creating it via terminal right into the relative folder
(/lib/systemd/system-sleep), I did it thru text editor, saved it in Home
and moved it to that folder as sudo.

>> Script content:

case "${1}" in
  resume|thaw)
    sudo service network-manager restart
;;
esac

>> After this, run (line by line, supposing you have saved script your
Home dir):

sudo su
(type your root password!)

mv network_restart /lib/systemd/system-sleep

chmod +x /lib/systemd/system-sleep/network_restart

>> Script seen on: http://askubuntu.com/questions/766718/script-to-
restart-network-manager-after-resume-from-sleep


** Attachment added: "Script to make Network Manager restart upon resume"
   
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1589073/+attachment/4704863/+files/network_restart

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1589073

Title:
  nm-applet not showing existing wifi connection

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1589073/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to