Files
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

47 lines
1.0 KiB
Plaintext

#compdef kldload kldunload
(( $+functions[_kld_module] )) ||
_kld_module() {
local ret=1
compadd "$@" - /boot/{kernel,modules}/*.ko(-.:t) && ret=0
_files "$@" -g '*.ko(-.)' && ret=0
return ret
}
(( $+functions[_kld_unload] )) ||
_kld_unload() {
compadd "$@" - $( /sbin/kldstat | awk '($1 ~ /^[0-9]/) { print $5 }' )
}
(( $+functions[_kld_unload_id] )) ||
_kld_unload_id() {
compadd "$@" - $( /sbin/kldstat | awk '($1 ~ /^[0-9]/) { print $1 }' )
}
_kld() {
unset _cache_sysctlvars
case "$service" in
kldload)
_arguments -s -S -A "-*" \
"-n[don't try to load module if already loaded]" \
'-v[be verbose]' \
'-q[silence any extraneous warnings]' \
'*:module to load:_kld_module'
;;
kldunload)
_arguments -s -S -A "-*" \
'-f[force the unload]' \
'-v[be verbose]' \
'(-n)-i:module id to unload:_kld_unload_id' \
'(-i)-n:module to unload:_kld_unload' \
'*:module to unload:_kld_unload'
;;
esac
}
_kld "$@"