Port-arm archive

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

rc.d script to load before secure level change



Becomes interesting and I found it amazingly easy to love
both rpi and netbsd.  :)
After yesterday's answers and a bit of reading, I pondered
some rc.d files and made a script, that might be the one
to load module before securelevel changes to 1.


#!/bin/sh
#

# PROVIDE: modload
# REQUIRE: pf
# BEFORE: SECURELEVEL

name="modload"
rcvar=$name
command="/sbin/modload pf"

load_rc_config $name
run_rc_command "$1"


For sure, I might be wrong. At least, BEFORE is not what
is needed to be, but I cannot define the value name.
To run the script, it should include "modload=YES" in
/etc/rc.conf.
Does it look like what we were talking about last few days?
Best regards

                               Zoran



Home | Main Index | Thread Index | Old Index