wok-6.x rev 15167
dummynet: fix kvers
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 23:01:14 2013 +0000 (2013-08-15) |
parents | aa4f4cb93068 |
children | 59dd9728a07d |
files | dummynet/receipt |
line diff
1.1 --- a/dummynet/receipt Thu Aug 15 22:27:16 2013 +0000 1.2 +++ b/dummynet/receipt Thu Aug 15 23:01:14 2013 +0000 1.3 @@ -14,8 +14,8 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - kvers=$(cd /lib/modules ; ls -d *-slitaz) 1.8 - kvers=${kvers%-slitaz} 1.9 + installed=/var/lib/tazpkg/installed 1.10 + kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION) 1.11 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile 1.12 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc 1.13 make