# HG changeset patch # User Pascal Bellard # Date 1245689078 -7200 # Node ID b563b08e4f328a6f1293ddd14cd07a506b0783ae # Parent 0952ca2f11ff5814293886de01dbb196a83fbea6 linux/list_modules.sh: new depmod (with relative path) support diff -r 0952ca2f11ff -r b563b08e4f32 linux/stuff/list_modules.sh --- a/linux/stuff/list_modules.sh Mon Jun 22 17:37:36 2009 +0200 +++ b/linux/stuff/list_modules.sh Mon Jun 22 18:44:38 2009 +0200 @@ -28,7 +28,7 @@ grep /$module: $_pkg/lib/modules/*-slitaz/modules.dep || find $_pkg/lib/modules/*-slitaz/kernel/$tree -name $module done | awk '{ for (i = 1; i <= NF; i++) print $i; }' -done | sort | uniq | sed -e 's,.*slitaz/kernel/,,' -e 's/:$//' | \ +done | sort | uniq | sed -e 's,.*slitaz/,,' -e 's,kernel/,,' -e 's/:$//' | \ while read module; do grep -qs ^$module$ $src/modules.list && continue echo $module