>Did you make this script executable? It should have these >permissions: > >[weerd@pom] $ ls -l /etc/apm/resume >-rwxr--r-- 1 root wheel 586 Apr 29 16:33 /etc/apm/resume > >(at least readable and executable by root) > >Running `sh /etc/netstart ${IF}` from /etc/apm/resume should work; but >if the device hasn't attached yet, you may need to put a `sleep 5` in >(play with the delay to match your hardware). > >Cheers, > >Paul
Hi Paul The script does not seem to run even though it has these permissions: -rwxr--r-- 1 root wheel 71B May 18 00:00 /etc/apm/resume the contents of the script are as follows: #!/bin/sh logger "resuming from suspend" sleep 5 sh /etc/netstart ure0 I'm quite lost with this. Is there something else that is required? apmd is enabled and running >The USB Ethernet adapter gets disconnected from the USB bus on suspend >and re-discovered on resume. ifconfig will show that it does not have >the autoconf flag set nor does it have any IPv4 addresses configured. > >Effectively it becomes a new device on resume. > >I'm not aware of any way to fix / work around this. Calling netstart(8) >from apm probably races against the kernel and the USB adapter might not >be there yet when it runs. Hi Florian Thanks, this explains why it works on the laptop with an integrated wifi card but not with the usb ethernet adapter. The reason why I'm using that in the first place is that I have a usb-c display with a built in adapter. Makes it easy to switch between two machines.