17 Sep
2012
17 Sep
'12
3:38 p.m.
From: Matthew Monaco <matthew.monaco@0x01b.net> --- functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions b/functions index eee09ec..6368815 100644 --- a/functions +++ b/functions @@ -315,6 +315,10 @@ add_module() { # skip expensive stuff if this module has already been added in_array "${module//-/_}" "${ADDED_MODULES[@]}" && return + if grep -q "/$module.ko$" "$MODULEDIR/modules.builtin" 2>/dev/null; then + return 0 + fi + while IFS=':= ' read -r -d '' field value; do case "$field" in filename) -- 1.7.12