wok-6.x diff iaxmodem/receipt @ rev 18899

Add more art from Leonardo Laporte.
SLiM themes Clean, Esperanza, Japan Art, Leaves, Montanhoso.
Openbox 3 themes Blinder, Chrommo.
Combo-theme Japanes (Openbox and GTK2).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 18 16:54:27 2016 +0200 (2016-02-18)
parents 92bb72113a36
children 3132d67b7e38
line diff
     1.1 --- a/iaxmodem/receipt	Fri Jun 21 16:25:19 2013 +0200
     1.2 +++ b/iaxmodem/receipt	Thu Feb 18 16:54:27 2016 +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  }