wok-6.x annotate linux/stuff/check_modules.sh @ rev 4972
add/improve TAGS r* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 11:44:49 2010 +0000 (2010-02-24) |
parents | f87a39ef0f12 |
children | 2ae67cafd57e |
rev | line source |
---|---|
jozee@3509 | 1 #!/bin/sh |
jozee@3509 | 2 # Echo any module in kernel .config that's not added to one of linux-* pkgs |
jozee@3509 | 3 # 2009/06/18 <jozee@slitaz.org> - GNU General Public License. |
jozee@3509 | 4 # |
jozee@4472 | 5 . /etc/tazwok.conf |
jozee@4472 | 6 |
jozee@4472 | 7 VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4472 | 8 src="$WOK/linux/linux-$VERSION" |
jozee@4472 | 9 |
jozee@3509 | 10 cd $src |
jozee@3509 | 11 mkdir -p ../stuff/tmp |
jozee@3509 | 12 rm -f ../stuff/tmp/* # clean up |
jozee@3509 | 13 # create a packaged modules list |
jozee@3509 | 14 cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list |
jozee@3509 | 15 |
jozee@3509 | 16 for i in $(cd $WOK; ls -d linux-*) |
jozee@3509 | 17 do |
jozee@3509 | 18 tazpath="taz/$i-$VERSION" |
jozee@3509 | 19 for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") |
jozee@3509 | 20 do |
jozee@3509 | 21 basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list |
jozee@3509 | 22 done |
jozee@3509 | 23 done |
jozee@3509 | 24 # get the original list in .config |
jozee@3509 | 25 for i in $(find $_pkg -iname "*.ko.gz") |
jozee@3509 | 26 do |
jozee@3509 | 27 basename $i >> ../stuff/tmp/originial-"$VERSION".list |
jozee@3509 | 28 done |
jozee@3509 | 29 # compare original .config and pkged modules |
jozee@3509 | 30 for i in $(cat ../stuff/tmp/originial-$VERSION.list) |
jozee@3509 | 31 do |
jozee@3509 | 32 if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then |
jozee@3509 | 33 modpath=`find $_pkg -iname "$i"` |
jozee@3509 | 34 echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list; |
jozee@3509 | 35 fi |
jozee@3509 | 36 done |
jozee@3509 | 37 if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then |
jozee@3509 | 38 echo "======================================================================" |
jozee@4472 | 39 echo " These modules selected in .config were not categorized in linux-* pkgs:" |
jozee@3509 | 40 cat ../stuff/tmp/unpackaged-modules-$VERSION.list |
jozee@4472 | 41 #echo "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list to see" |
jozee@4472 | 42 echo "======================================================================" |
jozee@3509 | 43 else |
jozee@3509 | 44 rm -r ../stuff/tmp |
jozee@3509 | 45 fi |
jozee@4472 | 46 |