wok-6.x view linux/stuff/check_modules.sh @ rev 4235

xfdesktop: fix FSH
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 24 15:52:59 2009 +0200 (2009-09-24)
parents
children e8d2c0b1111b
line source
1 #!/bin/sh
2 # Echo any module in kernel .config that's not added to one of linux-* pkgs
3 # 2009/06/18 <jozee@slitaz.org> - GNU General Public License.
4 #
6 VERSION=$1
7 WOK=$2
8 src=$WOK/linux/linux-$VERSION
9 cd $src
10 mkdir -p ../stuff/tmp
11 rm -f ../stuff/tmp/* # clean up
12 # create a packaged modules list
13 cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list
15 for i in $(cd $WOK; ls -d linux-*)
16 do
17 tazpath="taz/$i-$VERSION"
18 for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz")
19 do
20 basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list
21 done
22 done
23 # get the original list in .config
24 for i in $(find $_pkg -iname "*.ko.gz")
25 do
26 basename $i >> ../stuff/tmp/originial-"$VERSION".list
27 done
28 # compare original .config and pkged modules
29 for i in $(cat ../stuff/tmp/originial-$VERSION.list)
30 do
31 if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then
32 modpath=`find $_pkg -iname "$i"`
33 echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list;
34 fi
35 done
36 if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then
37 echo "======================================================================"
38 echo " Some modules selected in .config were not categorized in linux-* pkgs"
39 echo "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list to see"
40 cat ../stuff/tmp/unpackaged-modules-$VERSION.list
41 else
42 rm -r ../stuff/tmp
43 fi