wok diff kismet/receipt @ rev 18831

linux-module-headers: avoid depmod during install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 18 17:45:22 2016 +0100 (2016-01-18)
parents 1067bb7f1e24
children a78610b2eb47
line diff
     1.1 --- a/kismet/receipt	Wed Dec 16 15:49:50 2015 +0100
     1.2 +++ b/kismet/receipt	Mon Jan 18 17:45:22 2016 +0100
     1.3 @@ -43,23 +43,23 @@
     1.4  post_install()
     1.5  {
     1.6      # addgroup kismet if needed                                                                                                                
     1.7 -    if ! grep -q kismet $1/etc/group; then
     1.8 +    if ! grep -q kismet "$1/etc/group"; then
     1.9          echo -n "Adding group kismet..."
    1.10 -        chroot $1/ addgroup -g 315 kismet
    1.11 +        chroot "$1/" addgroup -g 315 kismet
    1.12          status
    1.13  	fi
    1.14  	# Add tux to kismet group
    1.15 -	chroot $1/ addgroup tux kismet
    1.16 +	chroot "$1/" addgroup tux kismet
    1.17  	# set Kismet as suid-root
    1.18  	echo -n "Set Kismet as suid-root.."
    1.19 -	chroot $1/ chown root:kismet /usr/bin/kismet_capture && \
    1.20 -	chroot $1/ chmod 4550 /usr/bin/kismet_capture
    1.21 +	chroot "$1/" chown root:kismet /usr/bin/kismet_capture && \
    1.22 +	chroot "$1/" chmod 4550 /usr/bin/kismet_capture
    1.23  	status
    1.24  	# configuration files update
    1.25  	create=1
    1.26  	overwrite=2
    1.27  	keep=3
    1.28 -	cd $1/etc/kismet
    1.29 +	cd "$1/etc/kismet"
    1.30  	# kismet_ui.conf doesn't exists anymore
    1.31  	if [ -e kismet_ui.conf ]; then
    1.32  		mv kismet_ui.conf kismet_ui.oldpkg