wok-6.x diff busybox/receipt @ rev 10818
busybox: add HTTPD_OPTIONS and start httpd as www user (+ add files forgot in previews commit)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jun 06 00:44:11 2011 +0200 (2011-06-06) |
parents | 481d1e820d85 |
children | 46c3a889a648 |
line diff
1.1 --- a/busybox/receipt Mon Jun 06 00:30:06 2011 +0200 1.2 +++ b/busybox/receipt Mon Jun 06 00:44:11 2011 +0200 1.3 @@ -137,6 +137,23 @@ 1.4 mv $1$i-busybox-install $1$i 1.5 done < $1$INSTALLED/$PACKAGE/files.list 1.6 chmod 4755 $1/bin/busybox 1.7 + 1.8 + # /etc/daemons.conf (tftp + dnsd + httpd may not be present) 1.9 + if ! grep -q ^DNSD_OPTIONS $root/etc/daemons.conf; then 1.10 + echo '# Domain name server options.' >> $root/etc/daemons.conf 1.11 + echo 'DNSD_OPTIONS="-d"' >> $root/etc/daemons.conf 1.12 + echo '' >> $root/etc/daemons.conf 1.13 + fi 1.14 + if ! grep -q ^TFTPD_OPTIONS $root/etc/daemons.conf; then 1.15 + echo '# Tftp daemon options.' >> $root/etc/daemons.conf 1.16 + echo 'TFTPD_OPTIONS="-r /boot"' >> $root/etc/daemons.conf 1.17 + echo '' >> $root/etc/daemons.conf 1.18 + fi 1.19 + if ! grep -q ^HTTPD_OPTIONS $root/etc/daemons.conf; then 1.20 + echo '# Busybox HTTP web server options.' >> $root/etc/daemons.conf 1.21 + echo 'HTTPD_OPTIONS="-u www"' >> $root/etc/daemons.conf 1.22 + echo '' >> $root/etc/daemons.conf 1.23 + fi 1.24 } 1.25 1.26 pre_remove()