Re: Help debug a network issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26/03/18 11:57, Ulf Volmer wrote:
On 26.03.2018 08:40, Robin Laing wrote:

sudo modprobe -r r8169
sudo modprobe r1869

So, what is my next step in finding out why this won't restart on suspend?

you can place a script for automatically load/unload your network driver.

see

https://blog.christophersmart.com/2016/05/11/running-scripts-before-and-after-suspend-with-systemd/

best regards
Ulf


This works.

Thanks.

This is the scrip I used.


#!/bin/sh
if [ "${1}" == "pre" ]; then
  # Do the thing you want before suspend here, e.g.:
#  echo "we are suspending at $(date)..." > /tmp/systemd_suspend_test
  modprobe -r r8169
elif [ "${1}" == "post" ]; then
  # Do the thing you want after resume here, e.g.:
#   echo "...and we are back from $(date)" >> /tmp/systemd_suspend_test
  modprobe r8169
fi


Robin
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux