Mercurial > hg > anonet-resdb
changeset 951:1ec03f851ccf draft
can use exec instead of csh for --install-daemontools. thanks AP :-)
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Sat, 19 May 2012 21:15:09 +0000 |
parents | 32a0933d1e04 |
children | b8ad676b3c0c 69a104eb11d6 |
files | contrib/peer2anonet/peer2anonet |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/peer2anonet/peer2anonet Thu Mar 15 21:12:25 2012 +0000 +++ b/contrib/peer2anonet/peer2anonet Sat May 19 21:15:09 2012 +0000 @@ -330,12 +330,10 @@ [[ $(echo X`which gcc`) == X ]] && exit 1 [[ $(echo X`which make`) == X ]] && echo ' fatal error: cannot find make' [[ $(echo X`which make`) == X ]] && exit 1 - [[ $(echo X`which csh`) == X ]] && echo ' fatal error: cannot find csh' - [[ $(echo X`which csh`) == X ]] && exit 1 if [ -w /etc/inittab ]; then : elif [ -w /etc/rc.local ] && ! [ -w /etc/inittab ]; then - sed -i "s/exit 0/csh -cf \'\/command\/svscanboot \&\'/" /etc/rc.local + sed -i "s/exit 0/exec \/command\/svscanboot \&/" /etc/rc.local chmod +x /etc/rc.local else echo ' fatal error: cannot create reliable startup' @@ -352,7 +350,7 @@ cd admin/daemontools-0.76 sed -i 's/gcc/gcc -include errno.h/g' src/conf-cc package/install - csh -cf '/command/svscanboot &' + exec /command/svscanboot >/dev/null 2>&1 & } INSTALL_UCSPI_TCP(){