diff options
author | d3v11 <d3v11@d3v11.ano> | 2012-01-15 02:49:46 +0000 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2012-01-15 02:49:46 +0000 |
commit | 660160694efdc857930957acb05f7b73ce3898d1 (patch) | |
tree | daee2645a7e3284ad51c665378091b6d99c18d93 /contrib | |
parent | e50e62ea947ed8c9cc782d2749f90ea49739e3a3 (diff) | |
download | resdb-660160694efdc857930957acb05f7b73ce3898d1.tar.gz resdb-660160694efdc857930957acb05f7b73ce3898d1.zip |
changed peer2anonet to support "slackware", nick please confirm
new code will work. if not i am happy to create fix
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/peer2anonet/peer2anonet | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index f1ab538..1917bc2 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -337,8 +337,16 @@ INSTALL_DAEMONTOOLS(){ cd admin/daemontools-0.76 sed -i 's/gcc/gcc -include errno.h/g' src/conf-cc package/install - cp /etc/rc.local /etc/peer2anonet/rc.local.backup - sed -i "s/exit 0/csh -cf \'\/command\/svscanboot \&\'/" /etc/rc.local + 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 chmod +x /etc/rc.local } |