wok rev 5638

linux: fix check_modules.sh and tiny improvment
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 28 16:16:06 2010 +0200 (2010-05-28)
parents ebd6ee3f828b
children ebfc5d58e405
files linux/stuff/check_modules.sh
line diff
     1.1 --- a/linux/stuff/check_modules.sh	Fri May 28 14:21:30 2010 +0200
     1.2 +++ b/linux/stuff/check_modules.sh	Fri May 28 16:16:06 2010 +0200
     1.3 @@ -2,8 +2,7 @@
     1.4  # Echo any module in kernel .config that's not added to one of linux-* pkgs
     1.5  # 2009/06/18 <jozee@slitaz.org> - GNU General Public License.
     1.6  #
     1.7 -    . /etc/tazwok.conf
     1.8 -	WOK=/home/slitaz/undigest/wok
     1.9 +	. /etc/tazwok.conf
    1.10  	VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.11  	src="$WOK/linux/linux-$VERSION"
    1.12  	
    1.13 @@ -14,33 +13,34 @@
    1.14  	cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list 
    1.15  	
    1.16  	for i in $(cd $WOK; ls -d linux-*)
    1.17 -    do
    1.18 +	do
    1.19  		tazpath="taz/$i-$VERSION"
    1.20  		for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz")
    1.21  		do
    1.22 -			basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list    
    1.23 +			basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list	
    1.24  		done 	
    1.25 -    done
    1.26 +	done
    1.27  	# get the original list in .config
    1.28  	for i in $(find $_pkg -iname "*.ko.gz") 
    1.29  	do
    1.30  		basename $i >> ../stuff/tmp/originial-"$VERSION".list
    1.31  	done
    1.32 -    # compare original .config and pkged modules
    1.33 +	# compare original .config and pkged modules
    1.34  	for i in $(cat ../stuff/tmp/originial-$VERSION.list)   
    1.35 -	do        
    1.36 +	do		
    1.37  		if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then 
    1.38 -		    modpath=`find $_pkg -iname "$i"`
    1.39 -			echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list; 
    1.40 +			modpath=`find $_pkg -iname "$i"`
    1.41 +			echo "$i" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list
    1.42 +			echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION"-full.list
    1.43  		fi
    1.44  	done
    1.45  	if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then
    1.46  		echo "======================================================================"
    1.47  		echo " These modules selected in .config were not categorized in linux-* pkgs:"
    1.48  		cat ../stuff/tmp/unpackaged-modules-$VERSION.list 
    1.49 -		#echo "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list to see"
    1.50  		echo "======================================================================"
    1.51 +		echo -e "Check linux/stuff/tmp/unpackaged-modules-$VERSION-full.list to see\n"
    1.52  	else
    1.53  		rm -r ../stuff/tmp
    1.54  	fi
    1.55 -    
    1.56 +