netmaker/scripts/netclient.sh
2021-09-28 18:24:10 -04:00

13 lines
344 B
Bash
Executable file

#!/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"