#!/bin/sh

kill $(ps |grep iot_keep_alive|grep -v grep|awk '{print $1}')

killall station

path="http://repo.dragino.com/release/miscellaneous/patch/iot_keep_alive.sh"
curl -o /usr/bin/iot_keep_alive.sh http://repo.dragino.com/release/miscellaneous/patch/iot_keep_alive.sh
curl -o /usr/bin/station_sx1301 http://repo.dragino.com/release/miscellaneous/patch/station_sx1301
curl -o /usr/bin/station_sx1302 http://repo.dragino.com/release/miscellaneous/patch/station_sx1302

sync 

reboot
