# HG changeset patch # User Christophe Lincoln # Date 1275056166 -7200 # Node ID c481f4ad6da356a0f41b5fc84653aac024917455 # Parent ebd6ee3f828b6cf9539264727fd56d330481afed linux: fix check_modules.sh and tiny improvment diff -r ebd6ee3f828b -r c481f4ad6da3 linux/stuff/check_modules.sh --- a/linux/stuff/check_modules.sh Fri May 28 14:21:30 2010 +0200 +++ b/linux/stuff/check_modules.sh Fri May 28 16:16:06 2010 +0200 @@ -2,8 +2,7 @@ # Echo any module in kernel .config that's not added to one of linux-* pkgs # 2009/06/18 - GNU General Public License. # - . /etc/tazwok.conf - WOK=/home/slitaz/undigest/wok + . /etc/tazwok.conf VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` src="$WOK/linux/linux-$VERSION" @@ -14,33 +13,34 @@ cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list for i in $(cd $WOK; ls -d linux-*) - do + do tazpath="taz/$i-$VERSION" for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") do - basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list + basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list done - done + done # get the original list in .config for i in $(find $_pkg -iname "*.ko.gz") do basename $i >> ../stuff/tmp/originial-"$VERSION".list done - # compare original .config and pkged modules + # compare original .config and pkged modules for i in $(cat ../stuff/tmp/originial-$VERSION.list) - do + do if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then - modpath=`find $_pkg -iname "$i"` - echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list; + modpath=`find $_pkg -iname "$i"` + echo "$i" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list + echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION"-full.list fi done if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then echo "======================================================================" echo " These modules selected in .config were not categorized in linux-* pkgs:" cat ../stuff/tmp/unpackaged-modules-$VERSION.list - #echo "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list to see" echo "======================================================================" + echo -e "Check linux/stuff/tmp/unpackaged-modules-$VERSION-full.list to see\n" else rm -r ../stuff/tmp fi - +