wok-next diff linux/stuff/check_modules.sh @ rev 9633

Fix: remove libfm-dev since I removed libfm afew time ago
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 26 15:19:31 2011 +0200 (2011-04-26)
parents 1d89aa1672da
children 2010b1abc210
line diff
     1.1 --- a/linux/stuff/check_modules.sh	Wed Feb 16 20:27:55 2011 +0000
     1.2 +++ b/linux/stuff/check_modules.sh	Tue Apr 26 15:19:31 2011 +0200
     1.3 @@ -12,43 +12,43 @@
     1.4  src="$WOK/linux/linux-$VERSION"
     1.5  
     1.6  cd $src
     1.7 -mkdir -p $WOK/tmp
     1.8 -rm -f $WOK/tmp/*
     1.9 +mkdir -p $WOK/$PACKAGE/tmp
    1.10 +rm -f $WOK/$PACKAGE/tmp/*
    1.11  
    1.12  echo -e "\nChecking for modules selected in .config but not in linux-* pkgs"
    1.13  echo "======================================================================"
    1.14  
    1.15  # create a packaged modules list
    1.16 -cat ../stuff/modules-"$VERSION".list >> $WOK/tmp/pkgs-modules-"$VERSION".list 
    1.17 +cat ../stuff/modules-"$VERSION".list >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 
    1.18  
    1.19  for i in $(cd $WOK; ls -d linux-*)
    1.20  do
    1.21  	tazpath="taz/$i-$VERSION"
    1.22  	for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz")
    1.23  	do
    1.24 -		basename $j >> $WOK/tmp/pkgs-modules-"$VERSION".list	
    1.25 +		basename $j >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list	
    1.26  	done 	
    1.27  done
    1.28  # get the original list in .config
    1.29  for i in $(find $_pkg -iname "*.ko.gz") 
    1.30  do
    1.31 -	basename $i >> $WOK/tmp/originial-"$VERSION".list
    1.32 +	basename $i >> $WOK/$PACKAGE/tmp/originial-"$VERSION".list
    1.33  done
    1.34  # compare original .config and pkged modules
    1.35 -for i in $(cat $WOK/tmp/originial-$VERSION.list)   
    1.36 +for i in $(cat $WOK/$PACKAGE/tmp/originial-$VERSION.list)   
    1.37  do		
    1.38 -	if ! grep -qs "$i" $WOK/tmp/pkgs-modules-"$VERSION".list ; then 
    1.39 +	if ! grep -qs "$i" $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list ; then 
    1.40  		modpath=`find $_pkg -iname "$i"`
    1.41  		echo "Orphan module: $i"
    1.42 -		echo "$i : $modpath" >> $WOK/tmp/unpackaged-modules-"$VERSION".list
    1.43 +		echo "$i : $modpath" >> $WOK/$PACKAGE/tmp/unpackaged-modules-"$VERSION".list
    1.44  	fi
    1.45  done
    1.46 -if [ -f $WOK/tmp/unpackaged-modules-"$VERSION".list ]; then
    1.47 +if [ -f $WOK/$PACKAGE/tmp/unpackaged-modules-"$VERSION".list ]; then
    1.48  	echo "======================================================================"
    1.49  	echo -e "Check linux/tmp/unpackaged-modules-$VERSION.list for mod path\n"
    1.50  else
    1.51  	echo -e "\nAll modules are packaged\n"
    1.52  	echo "======================================================================"
    1.53  	echo ""
    1.54 -	rm -rf $WOK/tmp
    1.55 +	rm -rf $WOK/$PACKAGE/tmp
    1.56  fi