summarylogtreecommitdiffstats
path: root/refresh.sh
blob: fd44454aaf38d58b5ff86a6e7baff44d6c9aae2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

. /usr/share/remoteit/functions.sh

if [ "$1" = "boot" ]; then
  until r3_update_config; do
    if [ -n "$(r3_get_device_id)" ]; then
      break
    fi
    sleep 5
  done
  r3_start_services 2>/dev/null
else
  r3_reload_agent
fi