#!/bin/bash
wget http://update.resiot.io/bsclient/ttmacro.zip
unzip ttmacro.zip -d /
rm ttmacro.zip
chmod +x /opt/resiot/resiot*
chmod +x /etc/init.d/resiot*

update-rc.d -f tektelic-pkt-fwd remove
update-rc.d -f mqtt-bridge remove
update-rc.d -f pkt_fwd remove

update-rc.d resiotbspf defaults
update-rc.d resiotbsmon defaults
update-rc.d resiotbsserver defaults
update-rc.d resiotwd defaults
update-rc.d resiotservice defaults
update-rc.d resiotbstb defaults

reboot
