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

Up: atk (2.6.0)
author Alexander Medvedev <devl547@gmail.com>
date Fri Jan 25 23:21:02 2013 +0000 (2013-01-25)
parents 07ae6003d013
children 2b9f96603415
line diff
     1.1 --- a/pdnsd/receipt	Sat Nov 10 13:54:41 2012 +0100
     1.2 +++ b/pdnsd/receipt	Fri Jan 25 23:21:02 2013 +0000
     1.3 @@ -32,21 +32,21 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  pre_remove()
     1.6  {
     1.7 -	sed -i 's/ pdns / /' $1/etc/rcS.conf
     1.8 -	rm -f $1/etc/init.d/pdns
     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/pdns.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/pdns.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/pdns &&
    1.24 -		tmp=" and add pdns to RUN_DAEMONS in /etc/rcS.conf"
    1.25 +	[ -s $1/etc/init.d/daemon ] && ln -s daemon $1/etc/init.d/pdnsd &&
    1.26 +		tmp=" and add pdnsd to RUN_DAEMONS in /etc/rcS.conf"
    1.27  	cat <<EOT
    1.28 -Now you can check /etc/pdns.conf$tmp.
    1.29 +Now you can check /etc/pdnsd.conf$tmp.
    1.30  EOT
    1.31  }