Re: Ordering for network-sensitive rc scripts

看板FB_current作者時間11年前 (2014/05/12 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/8 (看更多)
On 17 Apr 2014, at 09:30, Adrian Chadd <adrian@FreeBSD.org> wrote: > Can't we add a devd hook to do that? I tried doing this, but it turns out that wlan devices don't appear to send devd LINK_UP / LINK_DOWN events. It would be nice to have a clean solution to this. By default, using the stock rc scripts, my router is currently not able to forward packets from the WiFi until I've logged into it and manually run 'service pf restart', which is a bit crazy. I've hacked around it by having a script run from rc.local that sleeps for 60 seconds and then restarts a few things, but that's really, really ugly. On closer inspection, pf doesn't fail silently, it complains about a syntax error in my config file because wlan0 is not a known interface. We therefore have an rc ordering problem if you want to use pf and WiFi at the same time. This problem was introduced some time between 9.2 and 10.0. David _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1JRz0pef (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1JRz0pef (FB_current)