mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 17:42:57 +08:00
14 lines
344 B
Bash
14 lines
344 B
Bash
|
#!/bin/sh
|
||
|
echo "[netclient] joining network"
|
||
|
|
||
|
/etc/netclient/netclient join -t $NETCLIENT_ACCESSTOKEN -daemon off -dnson no
|
||
|
|
||
|
echo "[netclient] Starting netclient checkin"
|
||
|
# loop and call checkin -n all
|
||
|
while [ 1 ]; do
|
||
|
# add logs to netclient.logs
|
||
|
/etc/netclient/netclient checkin -n all
|
||
|
sleep $SLEEP
|
||
|
done
|
||
|
echo "[netclient] exiting"
|