wok-next diff pdnsd/receipt @ rev 20097
Update some bdeps.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 29 01:19:50 2017 +0300 (2017-10-29) |
parents | 2b9f96603415 |
children | 757d032c55c7 |
line diff
1.1 --- a/pdnsd/receipt Sat Aug 10 13:52:56 2013 +0000 1.2 +++ b/pdnsd/receipt Sun Oct 29 01:19:50 2017 +0300 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.