wok-current rev 17030
linux64: new module path (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 16 23:25:23 2014 +0200 (2014-08-16) |
parents | 532076da08b9 |
children | 765487dd22da |
files | linux/stuff/list_modules.sh |
line diff
1.1 --- a/linux/stuff/list_modules.sh Sat Aug 16 19:00:53 2014 +0200 1.2 +++ b/linux/stuff/list_modules.sh Sat Aug 16 23:25:23 2014 +0200 1.3 @@ -4,7 +4,7 @@ 1.4 # 1.5 1.6 find_modules() { 1.7 - find $install/lib/modules/*-slitaz/kernel/$1 -type f -exec basename {} \; 1.8 + find $install/lib/modules/*-slitaz*/kernel/$1 -type f -exec basename {} \; 1.9 } 1.10 1.11 if [ -z "$1" ] ; then 1.12 @@ -17,7 +17,7 @@ 1.13 exit 1 1.14 fi 1.15 1.16 -if [ -z "$(ls -d $install/lib/modules/*-slitaz/kernel/$1 2> /dev/null)" ] ; then 1.17 +if [ -z "$(ls -d $install/lib/modules/*-slitaz*/kernel/$1 2> /dev/null)" ] ; then 1.18 cat 1>&2 <<EOT 1.19 1.20 Error : $1 does not exist. 1.21 @@ -28,14 +28,14 @@ 1.22 1.23 for tree in $@; do 1.24 for module in $(find_modules $tree) ; do 1.25 - grep /$module: $install/lib/modules/*-slitaz/modules.dep || 1.26 - find $install/lib/modules/*-slitaz/kernel/$tree -name $module 1.27 + grep /$module: $install/lib/modules/*-slitaz*/modules.dep || 1.28 + find $install/lib/modules/*-slitaz*/kernel/$tree -name $module 1.29 done | awk '{ for (i = 1; i <= NF; i++) print $i; }' 1.30 -done | sort | uniq | sed -e 's,.*slitaz/,,' -e 's,^kernel/,,' -e 's/:$//' | \ 1.31 +done | sort | uniq | sed -e 's,.*slitaz*/,,' -e 's,^kernel/,,' -e 's/:$//' | \ 1.32 while read module; do 1.33 grep -qs ^$module$ $src/../tmp/modules.list && continue 1.34 - if [ ! -f $install/lib/modules/*-slitaz/kernel/$module ]; then 1.35 - (cd $install/lib/modules/*-slitaz/kernel; find -name $(basename $module) ) 1.36 + if [ ! -f $install/lib/modules/*-slitaz*/kernel/$module ]; then 1.37 + (cd $install/lib/modules/*-slitaz*/kernel; find -name $(basename $module) ) 1.38 else 1.39 echo $module 1.40 fi