tazwok rev 536

tazwok: set $kvers for kernel version
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 10:33:20 2011 +0200 (2011-05-27)
parents b1584d8f70a7
children ec992cde007f
files tazwok
line diff
     1.1 --- a/tazwok	Tue May 24 21:08:47 2011 +0000
     1.2 +++ b/tazwok	Fri May 27 10:33:20 2011 +0200
     1.3 @@ -410,6 +410,11 @@
     1.4  	fi
     1.5  	stuff=$WOK/$PACKAGE/stuff
     1.6  	[ "$WANTED" ] && wanted_stuff=$WOK/$WANTED/stuff
     1.7 +	# Kernel version is set from linux-api-headers since it part of toolchain.
     1.8 +	if [ -f "$LOCALSTATE/installed/linux-api-headers/receipt" ]; then
     1.9 +		kvers=$(grep ^VERSION= $LOCALSTATE/installed/linux-api-headers/receipt | \
    1.10 +			cut -d '"' -f 2)
    1.11 +	fi
    1.12  }
    1.13  
    1.14  set_pkg_path()