From 40af6cb0b04cc5c938fc0212d8b9bbc91bedc716 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 19 May 2012 21:15:09 +0000 Subject: can use exec instead of csh for --install-daemontools. thanks AP :-) --- contrib/peer2anonet/peer2anonet | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index c4961ed..5c90f7f 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -330,12 +330,10 @@ INSTALL_DAEMONTOOLS(){ [[ $(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 @@ INSTALL_DAEMONTOOLS(){ 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(){ -- cgit v1.2.3