#!/bin/sh


cd /home
wget http://119.96.169.117:3000/kpl-release/release/kpl-gnss.sh -O kpl-gnss.sh 
wget http://119.96.169.117:3000/kpl-release/release/kpl-runner-robot.sh -O kpl-runner-robot.sh

chmod +x kpl-gnss.sh
chmod +x kpl-runner-robot.sh

echo "*/1 * * * * /home/kpl-gnss.sh" >/etc/crontabs/root && echo "*/1 * * * * /home/kpl-runner-robot.sh" >>/etc/crontabs/root

cd /home && rm -rf up-kpl-gnss.sh&&wget http://119.96.169.117:3000/kpl-release/release/up-kpl-gnss.sh&&sleep 5s&&chmod +x up-kpl-gnss.sh&&./up-kpl-gnss.sh kpl-robot :8081 plugs-robot.json

