wok rev 3539
linux/list_modules.sh: new depmod (with relative path) support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 22 18:44:38 2009 +0200 (2009-06-22) |
parents | 0952ca2f11ff |
children | f125003a2855 |
files | linux/stuff/list_modules.sh |
line diff
1.1 --- a/linux/stuff/list_modules.sh Mon Jun 22 17:37:36 2009 +0200 1.2 +++ b/linux/stuff/list_modules.sh Mon Jun 22 18:44:38 2009 +0200 1.3 @@ -28,7 +28,7 @@ 1.4 grep /$module: $_pkg/lib/modules/*-slitaz/modules.dep || 1.5 find $_pkg/lib/modules/*-slitaz/kernel/$tree -name $module 1.6 done | awk '{ for (i = 1; i <= NF; i++) print $i; }' 1.7 -done | sort | uniq | sed -e 's,.*slitaz/kernel/,,' -e 's/:$//' | \ 1.8 +done | sort | uniq | sed -e 's,.*slitaz/,,' -e 's,kernel/,,' -e 's/:$//' | \ 1.9 while read module; do 1.10 grep -qs ^$module$ $src/modules.list && continue 1.11 echo $module