wok-6.x diff pdnsd/receipt @ rev 19659

Up cookutils (873): bugfix
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 27 15:55:45 2017 +0200 (2017-01-27)
parents 2b9f96603415
children b9659e3c2111
line diff
     1.1 --- a/pdnsd/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/pdnsd/receipt	Fri Jan 27 15:55:45 2017 +0200
     1.3 @@ -33,19 +33,19 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  pre_remove()
     1.6  {
     1.7 -	sed -i 's/pdnsd//' $1/etc/rcS.conf
     1.8 -	rm -f $1/etc/init.d/pdnsd
     1.9 +	sed -i 's/pdnsd//' "$1/etc/rcS.conf"
    1.10 +	rm -f "$1/etc/init.d/pdnsd"
    1.11  }
    1.12  
    1.13  post_install()
    1.14  {
    1.15  	local tmp
    1.16  	tmp=$(route -n | awk '/^0.0.0.0/ { print $8; }')
    1.17 -	[ -n "$tmp" ] && sed -i "s/eth0/$tmp/" $1/etc/pdnsd.conf
    1.18 +	[ -n "$tmp" ] && sed -i "s/eth0/$tmp/" "$1/etc/pdnsd.conf"
    1.19  	tmp=$(sed '/nameserver/!d;s/nameserver //;q' < /etc/resolv.conf)
    1.20 -	[ -n "$tmp" ] && sed -i "s/192\.168\.0\.1/$tmp/" $1/etc/pdnsd.conf
    1.21 +	[ -n "$tmp" ] && sed -i "s/192\.168\.0\.1/$tmp/" "$1/etc/pdnsd.conf"
    1.22  	tmp=
    1.23 -	[ -s $1/etc/init.d/daemon ] && ln -s daemon $1/etc/init.d/pdnsd &&
    1.24 +	[ -s "$1/etc/init.d/daemon" ] && ln -s daemon "$1/etc/init.d/pdnsd" &&
    1.25  		tmp=" and add pdnsd to RUN_DAEMONS in /etc/rcS.conf"
    1.26  	cat <<EOT
    1.27  Now you can check /etc/pdnsd.conf$tmp.