wok diff linux/stuff/check_modules.sh @ rev 8302
Fix: check_module.sh (into linux stuff) modified to works with tazwok-experimental
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Feb 01 02:51:09 2011 +0100 (2011-02-01) |
parents | 3fe781270709 |
children | 1d89aa1672da |
line diff
1.1 --- a/linux/stuff/check_modules.sh Sun May 30 12:03:29 2010 +0200 1.2 +++ b/linux/stuff/check_modules.sh Tue Feb 01 02:51:09 2011 +0100 1.3 @@ -4,48 +4,48 @@ 1.4 # 20090618 <jozee@slitaz.org> 1.5 # 20100528 <pankso@slitaz.org> 1.6 # 1.7 -. /etc/tazwok.conf 1.8 +WOK=$(cd `basedir $0` && pwd | sed 's/wok.*/wok/') 1.9 VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.10 src="$WOK/linux/linux-$VERSION" 1.11 1.12 cd $src 1.13 -mkdir -p ../stuff/tmp 1.14 -rm -f ../stuff/tmp/* 1.15 +mkdir -p ../tmp 1.16 +rm -f ../tmp/* 1.17 1.18 echo -e "\nChecking for modules selected in .config but not in linux-* pkgs" 1.19 echo "======================================================================" 1.20 1.21 # create a packaged modules list 1.22 -cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list 1.23 +cat ../stuff/modules-"$VERSION".list >> ../tmp/pkgs-modules-"$VERSION".list 1.24 1.25 for i in $(cd $WOK; ls -d linux-*) 1.26 do 1.27 tazpath="taz/$i-$VERSION" 1.28 for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") 1.29 do 1.30 - basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list 1.31 + basename $j >> ../tmp/pkgs-modules-"$VERSION".list 1.32 done 1.33 done 1.34 # get the original list in .config 1.35 for i in $(find $_pkg -iname "*.ko.gz") 1.36 do 1.37 - basename $i >> ../stuff/tmp/originial-"$VERSION".list 1.38 + basename $i >> ../tmp/originial-"$VERSION".list 1.39 done 1.40 # compare original .config and pkged modules 1.41 -for i in $(cat ../stuff/tmp/originial-$VERSION.list) 1.42 +for i in $(cat ../tmp/originial-$VERSION.list) 1.43 do 1.44 - if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then 1.45 + if ! grep -qs "$i" ../tmp/pkgs-modules-"$VERSION".list ; then 1.46 modpath=`find $_pkg -iname "$i"` 1.47 echo "Orphan module: $i" 1.48 - echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list 1.49 + echo "$i : $modpath" >> ../tmp/unpackaged-modules-"$VERSION".list 1.50 fi 1.51 done 1.52 -if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then 1.53 +if [ -f ../tmp/unpackaged-modules-"$VERSION".list ]; then 1.54 echo "======================================================================" 1.55 - echo -e "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list for mod path\n" 1.56 + echo -e "Check linux/tmp/unpackaged-modules-$VERSION.list for mod path\n" 1.57 else 1.58 echo -e "\nAll modules are packaged\n" 1.59 echo "======================================================================" 1.60 echo "" 1.61 - rm -rf ../stuff/tmp 1.62 + rm -rf ../tmp 1.63 fi