Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/kld
Show All 35 Lines | |||||
desc="Load kernel modules" | desc="Load kernel modules" | ||||
start_cmd="${name}_start" | start_cmd="${name}_start" | ||||
stop_cmd=':' | stop_cmd=':' | ||||
kld_start() | kld_start() | ||||
{ | { | ||||
[ -n "$kld_list" ] || return | [ -n "$kld_list" ] || return | ||||
[ -z "kenv kld_disable 2>/dev/null" ] || return | |||||
allanjude: Doesn't this need to be:
```
[ -z "$(kenv -q kld_disable 2>/dev/null)" ] || return
```
to… | |||||
impAuthorUnsubmitted Done Inline ActionsYup. You're right. imp: Yup. You're right. | |||||
local _kld | local _kld | ||||
echo 'Loading kernel modules:' | echo 'Loading kernel modules:' | ||||
for _kld in $kld_list ; do | for _kld in $kld_list ; do | ||||
load_kld -e ${_kld}.ko $_kld | load_kld -e ${_kld}.ko $_kld | ||||
done | done | ||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
run_rc_command "$1" | run_rc_command "$1" |
Doesn't this need to be:
to actually run the command?