-1

my system keeps killing my wifi connection and I am having to use the terminal to restart it using the following comand

sudo systemctl restart NetworkManager

how would i write a script for this that I could place in my favorites bar

1
  • Seems like a workaround. The problem may be permanently fixable. Of course, it may not be, too.
    – user535733
    Jun 9, 2021 at 16:48

1 Answer 1

2

I've written a bash script to help with this: https://github.com/waltinator/net-o-matic It watches the connection, and when the connection drops, does a user-specified thing to try to reconnect.

Look at the logs! sudo journalctl -b 0 -u NetworkManager. Read man journalctl.

2
  • I see your code there but fil to see where to and how to modify it for my system Jun 12, 2021 at 18:51
  • The net-o-matic.conf file shows examples.
    – waltinator
    Jun 12, 2021 at 19:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .