wok-next diff linux/stuff/list_modules.sh @ rev 12060

Up: dovecot (2.1.1) + improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Mar 08 14:32:42 2012 +0100 (2012-03-08)
parents 720fade32b40
children 81e766fe2520
line diff
     1.1 --- a/linux/stuff/list_modules.sh	Fri Sep 25 20:04:15 2009 +0200
     1.2 +++ b/linux/stuff/list_modules.sh	Thu Mar 08 14:32:42 2012 +0100
     1.3 @@ -35,5 +35,9 @@
     1.4  done | sort | uniq | sed -e 's,.*slitaz/,,' -e 's,^kernel/,,' -e 's/:$//' | \
     1.5  while read module; do
     1.6      grep -qs ^$module$ $src/modules.list && continue
     1.7 -    echo $module
     1.8 +    if [ ! -f $_pkg/lib/modules/*-slitaz/kernel/$module ]; then
     1.9 +	(cd $_pkg/lib/modules/*-slitaz/kernel; find -name $(basename $module) )
    1.10 +    else
    1.11 +        echo $module
    1.12 +    fi
    1.13  done