wok-next diff pdnsd/receipt @ rev 19025

syslinux/win32.c: fix write sector
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 02 18:58:38 2016 +0200 (2016-04-02)
parents 2b9f96603415
children 757d032c55c7
line diff
     1.1 --- a/pdnsd/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/pdnsd/receipt	Sat Apr 02 18:58:38 2016 +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.