summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-01-15 08:21:58 +0000
committerd3v11 <d3v11@d3v11.ano>2012-01-15 08:21:58 +0000
commitf3610aba6ff6d2ecc7525d0d492de5c86d7d8f9a (patch)
tree27f69c2f16213d99ee9d25a28bdbce9887da8046
parent42f3c4eebf5c3d6f932d0440704d6bfe5b110180 (diff)
downloadresdb-f3610aba6ff6d2ecc7525d0d492de5c86d7d8f9a.tar.gz
resdb-f3610aba6ff6d2ecc7525d0d492de5c86d7d8f9a.zip
bugfixes
-rwxr-xr-xcontrib/peer2anonet/peer2anonet20
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index 715b326..b087aa3 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -328,6 +328,16 @@ INSTALL_DAEMONTOOLS(){
[[ $(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
+ chmod +x /etc/rc.local
+ else
+ echo ' fatal error: cannot create reliable startup'
+ exit 1
+ fi
+
mkdir -p /package
chmod 1755 /package
cd /package
@@ -338,16 +348,6 @@ INSTALL_DAEMONTOOLS(){
cd admin/daemontools-0.76
sed -i 's/gcc/gcc -include errno.h/g' src/conf-cc
package/install
- if [ -e /etc/rc.d/rc.local ]; then
- sed -i "s/exit 0/csh -cf \'\/command\/svscanboot \&\'/" /etc/rc.d/rc.local
- chmod +x /etc/rc.d/rc.local
- elif [ -e /etc/rc.local ]; then
- sed -i "s/exit 0/csh -cf \'\/command\/svscanboot \&\'/" /etc/rc.local
- chmod +x /etc/rc.local
- else
- echo ' fatal error: cannot find rc startup script'
- exit 1
- fi
}
INSTALL_UCSPI_TCP(){