This commit is contained in:
Zachary Boyd 2014-03-19 13:22:31 +00:00
parent 20b408ee56
commit be23666592

View file

@ -1,13 +1,10 @@
<?php require('./config.php'); ?> <?php require('./config.php'); ?>
#!/bin/bash #!/bin/bash
while : if export http_proxy=http://<?php echo PROXY_USERNAME; ?>:<?php echo PROXY_PASSWORD; ?>@localhost:<?php echo PROXY_PORT; ?> && wget -qO- http://ifconfig.me/ip; then
do exit 0;
if export http_proxy=http://<?php echo PROXY_USERNAME; ?>:<?php echo PROXY_PASSWORD; ?>@localhost:<?php echo PROXY_PORT; ?> && wget -qO- http://ifconfig.me/ip; then else
sleep 1; echo "test failed";
else init 6;
echo "test failed"; exit 1;
init 6; fi
break;
fi
done