wok-current diff linux/stuff/check_modules.sh @ rev 5934

netsurf: add missing file.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri Jul 30 22:41:51 2010 +0200 (2010-07-30)
parents 63937e3b2979
children 2b6fda1dbf0d
line diff
     1.1 --- a/linux/stuff/check_modules.sh	Fri May 28 21:08:44 2010 +0200
     1.2 +++ b/linux/stuff/check_modules.sh	Fri Jul 30 22:41:51 2010 +0200
     1.3 @@ -1,6 +1,8 @@
     1.4  #!/bin/sh
     1.5  # Echo any module in kernel .config that's not added to one of linux-* pkgs
     1.6 -# 2009/06/18 <jozee@slitaz.org> - GNU General Public License.
     1.7 +# (c) SliTaz - GNU General Public License.
     1.8 +# 20090618 <jozee@slitaz.org> 
     1.9 +# 20100528 <pankso@slitaz.org>
    1.10  #
    1.11  . /etc/tazwok.conf
    1.12  VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.13 @@ -10,6 +12,9 @@
    1.14  mkdir -p ../stuff/tmp
    1.15  rm -f ../stuff/tmp/*
    1.16  
    1.17 +echo -e "\nChecking for modules selected in .config but not in linux-* pkgs"
    1.18 +echo "======================================================================"
    1.19 +
    1.20  # create a packaged modules list
    1.21  cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list 
    1.22  
    1.23 @@ -31,17 +36,16 @@
    1.24  do		
    1.25  	if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then 
    1.26  		modpath=`find $_pkg -iname "$i"`
    1.27 -		echo "$i" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list
    1.28 -		echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION"-full.list
    1.29 +		echo "Orphan module: $i"
    1.30 +		echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list
    1.31  	fi
    1.32  done
    1.33  if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then
    1.34 -	echo -e "\nThese modules selected in .config were not categorized in linux-* pkgs:"
    1.35  	echo "======================================================================"
    1.36 -	cat ../stuff/tmp/unpackaged-modules-$VERSION.list 
    1.37 -	echo "======================================================================"
    1.38 -	echo -e "Check linux/stuff/tmp/unpackaged-modules-$VERSION-full.list to see\n"
    1.39 +	echo -e "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list for mod path\n"
    1.40  else
    1.41  	echo -e "\nAll modules are packaged\n"
    1.42 +	echo "======================================================================"
    1.43 +	echo ""
    1.44  	rm -rf ../stuff/tmp
    1.45  fi