wok rev 3175

reconfigure udev after /etc/udev/rules.d addition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 25 13:26:29 2009 +0200 (2009-05-25)
parents 4d3d49a8f050
children 3bd466cd6f45
files hplip/receipt kqemu/receipt pcmciautils/receipt zaptel/receipt
line diff
     1.1 --- a/hplip/receipt	Mon May 25 13:11:56 2009 +0200
     1.2 +++ b/hplip/receipt	Mon May 25 13:26:29 2009 +0200
     1.3 @@ -68,3 +68,7 @@
     1.4  	
     1.5  }
     1.6  
     1.7 +post_install()
     1.8 +{
     1.9 +	tazpkg reconfigure udev --root=$1
    1.10 +}
     2.1 --- a/kqemu/receipt	Mon May 25 13:11:56 2009 +0200
     2.2 +++ b/kqemu/receipt	Mon May 25 13:26:29 2009 +0200
     2.3 @@ -38,16 +38,14 @@
     2.4  post_install()
     2.5  {
     2.6  	if [ -d $1/etc/udev ]; then
     2.7 -		echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' \
     2.8 -			> $1/etc/udev/rules.d/60-kqemu.rules
     2.9 -		echo "/etc/udev/rules.d/60-kqemu.rules" >> \
    2.10 -			$INSTALLED/$PACKAGE/files.list
    2.11 +		file=/etc/udev/rules.d/60-kqemu.rules
    2.12 +		echo 'KERNEL=="kqemu", NAME="%k", MODE="0666"' > $1$file
    2.13 +		tazpkg reconfigure udev --root=$1
    2.14  	else
    2.15 -		mknod _pkg/dev/kqemu c 250 0
    2.16 -		chmod 666 _pkg/dev/kqemu
    2.17 -		echo "/dev/kqemu" >> \
    2.18 -			$INSTALLED/$PACKAGE/files.list
    2.19 +		file=/dev/kqemu
    2.20 +		mknod -m 666 $1$file c 250 0
    2.21  	fi
    2.22 +	echo "$file" >> $INSTALLED/$PACKAGE/files.list
    2.23  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.24  }
    2.25  
     3.1 --- a/pcmciautils/receipt	Mon May 25 13:11:56 2009 +0200
     3.2 +++ b/pcmciautils/receipt	Mon May 25 13:26:29 2009 +0200
     3.3 @@ -36,3 +36,8 @@
     3.4  	sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \
     3.5  		$fs/etc/udev/rules.d/60-pcmcia.rules
     3.6  }
     3.7 +
     3.8 +post_install()
     3.9 +{
    3.10 +	tazpkg reconfigure udev --root=$1
    3.11 +}
     4.1 --- a/zaptel/receipt	Mon May 25 13:11:56 2009 +0200
     4.2 +++ b/zaptel/receipt	Mon May 25 13:26:29 2009 +0200
     4.3 @@ -46,6 +46,7 @@
     4.4  post_install()
     4.5  {
     4.6  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
     4.7 +	tazpkg reconfigure udev --root=$1
     4.8  }
     4.9  
    4.10  post_remove()