wok-current rev 17036
linux: fix list_modules.sh (thanks aleksej)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 18 23:00:41 2014 +0200 (2014-08-18) |
parents | a5925e09274e |
children | 08f5bc0133f6 |
files | linux/stuff/list_modules.sh |
line diff
1.1 --- a/linux/stuff/list_modules.sh Mon Aug 18 08:45:31 2014 +0000 1.2 +++ b/linux/stuff/list_modules.sh Mon Aug 18 23:00:41 2014 +0200 1.3 @@ -31,7 +31,7 @@ 1.4 grep /$module: $install/lib/modules/*-slitaz*/modules.dep || 1.5 find $install/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*/,,' -e 's,^kernel/,,' -e 's/:$//' | \ 1.8 +done | sort | uniq | sed -e 's,.*slitaz[64]*/,,' -e 's,^kernel/,,' -e 's/:$//' | \ 1.9 while read module; do 1.10 grep -qs ^$module$ $src/../tmp/modules.list && continue 1.11 if [ ! -f $install/lib/modules/*-slitaz*/kernel/$module ]; then