buebo
July 26th, 2003, 23:22
Hi,
i just installed the FreeBSD-Port of OpenBSD's pf, but how to I load the kernel-modules at the boot?
I had a look at /boot/defaults/loader.conf but there's no pf mentioned there.
Also I'm a little worried if it's possible to load modules at boot time wich are residing on a different Partion (e.g. /usr)....

Thank you for your time
buebo

Kernel_Killer
July 26th, 2003, 23:37
As long as the system mounts your other partition at bottup, you should be good to go. Throwing your command in /etc/rc.conf might help.

buebo
July 26th, 2003, 23:44
I'm not into shell-scripting at all so forgive me if I'm totally missing the Point. You think it would be enough to have something like sh "/sbin/kldload /usr/local/modules/pf.ko" in /etc/rc.conf?

Kernel_Killer
July 26th, 2003, 23:47
It should work. There might be a better way of entering it, but if it doesn't work you will see an error at the end of your bootup.

buebo
July 26th, 2003, 23:55
Works, thanks!

Kernel_Killer
July 27th, 2003, 05:01
No problem at all. Good to see it worked out great.