wok-current diff iaxmodem/receipt @ rev 19833

midori: fix desktop file
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 11 04:45:41 2017 +0200 (2017-03-11)
parents 92bb72113a36
children 3132d67b7e38
line diff
     1.1 --- a/iaxmodem/receipt	Fri Jun 21 16:25:19 2013 +0200
     1.2 +++ b/iaxmodem/receipt	Sat Mar 11 04:45:41 2017 +0200
     1.3 @@ -46,21 +46,21 @@
     1.4  
     1.5  pre_remove()
     1.6  {
     1.7 -	sed -i '/iaxmodem/d' $1/etc/inittab
     1.8 +	sed -i '/iaxmodem/d' "$1/etc/inittab"
     1.9  }
    1.10  
    1.11  # Pre and post install commands for Tazpkg.
    1.12  post_install()
    1.13  {
    1.14 -	grep -q ^uucp: $1/etc/passwd || {
    1.15 -		chroot $1/ adduser -s /bin/false -S -D -H uucp
    1.16 -		sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' $1/etc/passwd 
    1.17 +	grep -q ^uucp: "$1/etc/passwd" || {
    1.18 +		chroot "$1/" adduser -s /bin/false -S -D -H uucp
    1.19 +		sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' "$1/etc/passwd"
    1.20  	}
    1.21 -	grep -q ^uucp: $1/etc/group  || chroot $1/ addgroup uucp
    1.22 -	touch $1/var/log/iaxmodem/ttyIAX0 $1/var/log/iaxmodem/iaxmodem
    1.23 -	grep iaxmodem $1/etc/inittab || cat >> $1/etc/inittab << EOT
    1.24 +	grep -q ^uucp: "$1/etc/group"  || chroot "$1/" addgroup uucp
    1.25 +	touch "$1/var/log/iaxmodem/ttyIAX0" "$1/var/log/iaxmodem/iaxmodem"
    1.26 +	grep iaxmodem "$1/etc/inittab" || cat >> "$1/etc/inittab" << EOT
    1.27  ::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1
    1.28  ::respawn:/usr/sbin/faxgetty ttyIAX0
    1.29  EOT
    1.30 -	[ -n "$1" ] || kill -1 1
    1.31 +	[ "$1" ] || kill -1 1
    1.32  }