wok diff linux/stuff/check_modules.sh @ rev 15855

New kernel config and huge receipt clean up
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 29 09:56:07 2014 +0100 (2014-01-29)
parents 4371e2f99088
children
line diff
     1.1 --- a/linux/stuff/check_modules.sh	Mon Feb 18 10:10:03 2013 +0100
     1.2 +++ b/linux/stuff/check_modules.sh	Wed Jan 29 09:56:07 2014 +0100
     1.3 @@ -1,14 +1,10 @@
     1.4  #!/bin/sh
     1.5  # Echo any module in kernel .config that's not added to one of linux-* pkgs
     1.6 -# (c) SliTaz - GNU General Public License.
     1.7 -# 20090618 <jozee@slitaz.org> 
     1.8 -# 20100528 <pankso@slitaz.org>
     1.9 +# (c) 2009-2014 SliTaz - GNU General Public License.
    1.10  #
    1.11 -#. /etc/slitaz/slitaz.conf
    1.12  
    1.13 -#WOK=$LOCAL_REPOSITORY/wok
    1.14  WOK=$(cd `dirname $0` && pwd | sed 's/wok.*/wok/')
    1.15 -VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.16 +VERSION=$(grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g')
    1.17  BASEVER="${VERSION:0:3}"
    1.18  src="$WOK/linux/source/linux-$VERSION"
    1.19  
    1.20 @@ -34,7 +30,7 @@
    1.21  	fi
    1.22  done
    1.23  # get the original list in .config
    1.24 -for i in $(find $_pkg -iname "*.ko.?z")
    1.25 +for i in $(find $install -iname "*.ko.?z")
    1.26  do
    1.27  	basename $i
    1.28  done > $tmp/original-"$VERSION".list
    1.29 @@ -42,7 +38,7 @@
    1.30  for i in $(cat $tmp/original-$VERSION.list)
    1.31  do
    1.32  	if ! grep -qs "$i" $tmp/pkgs-modules-"$VERSION".list ; then
    1.33 -		modpath=`find $_pkg -iname "$i"`
    1.34 +		modpath=`find $install -iname "$i"`
    1.35  		echo "Orphan module: $i"
    1.36  		echo "$i : $modpath" >> $tmp/unpackaged-modules-"$VERSION".list
    1.37  	fi