wok-next rev 9639
linux: Fixed check_modules.sh script. It only cats files.list if linux-libre is not greped in receipt.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Apr 26 19:47:04 2011 +0000 (2011-04-26) |
parents | cb6aa83b04c6 |
children | 973f4b50dcf3 |
files | linux/stuff/check_modules.sh |
line diff
1.1 --- a/linux/stuff/check_modules.sh Tue Apr 26 17:57:44 2011 +0000 1.2 +++ b/linux/stuff/check_modules.sh Tue Apr 26 19:47:04 2011 +0000 1.3 @@ -24,20 +24,22 @@ 1.4 for i in $(cd $WOK; ls -d linux-*) 1.5 do 1.6 tazpath="taz/$i-$VERSION" 1.7 - for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") 1.8 - do 1.9 - basename $j >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 1.10 - done 1.11 + if [ -f $WOK/$i/$tazpath/files.list ]; then 1.12 + for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") 1.13 + do 1.14 + basename $j >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 1.15 + done 1.16 + fi 1.17 done 1.18 # get the original list in .config 1.19 -for i in $(find $_pkg -iname "*.ko.gz") 1.20 +for i in $(find $_pkg -iname "*.ko.gz") 1.21 do 1.22 basename $i >> $WOK/$PACKAGE/tmp/originial-"$VERSION".list 1.23 done 1.24 # compare original .config and pkged modules 1.25 -for i in $(cat $WOK/$PACKAGE/tmp/originial-$VERSION.list) 1.26 -do 1.27 - if ! grep -qs "$i" $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list ; then 1.28 +for i in $(cat $WOK/$PACKAGE/tmp/originial-$VERSION.list) 1.29 +do 1.30 + if ! grep -qs "$i" $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list ; then 1.31 modpath=`find $_pkg -iname "$i"` 1.32 echo "Orphan module: $i" 1.33 echo "$i : $modpath" >> $WOK/$PACKAGE/tmp/unpackaged-modules-"$VERSION".list