On Wed, May 17, 2023 at 06:02:58PM +0000, l...@fuji.kuistio.me wrote: | Hi | | I have a desktop machine I recently installed OpenBSD 7.3 on. Everything | seems to be working fine except that it doesn't obtain a DHCP lease when | waking up from suspend. I haven't found any docs saying if it even should | do this. However, I also have a laptop running 7.3 and it does automatically | connect to a network when waking up from suspend. So I'm a bit confused | about why this works on the laptop but not on the desktop. | | On both machines I have created a hostname.if file under /etc. The desktop | machine does obtain a dhcp lease after the system has booted up, but it | doesn't do this after waking up from suspend as explained earlier. The | laptop is using wifi and the desktop is using a usb-ethernet adapter. | | Is this kind of behaviour expected? It's not a huge issue, since suspending | the desktop machine is not that necessary. I'm just quite puzzled because | these two machines behave differently even though the configuration should | be almost identical. I tried to resolve the issue by creating a script in | /etc/apm/resume that should run /etc/netstart, but for whatever reason this | script does not seem to run at all when the machine wakes up.
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 -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/