#!/bin/bash

#  weavedinstaller
#
#  Run 'sudo weavedinstaller' to install, configure or remove remot3.it
#  attachment services for tcp listeners.
#
#  remot3.it by Weaved, Inc. 
#  Copyright 2016. All rights reserved.
#

##### Settings #####
VERSION=v1.3-07_Pi
AUTHOR="Gary Worsham"
MODIFIED="August 22, 2016"

USERNAME=""
PASSWORD=""
AUTHHASH="REPLACE_AUTHHASH"
APIKEY="WeavedDeveloperToolsWy98ayxR"
REGISTERSERVICE="1"
DEBUG="0"
MAXSEL=6

#==================================================================================
# If STARTDAEMONSONREBOOT is set to "1", then following the execution of the weavedinstaller_OEM script,
# the next time the device is rebooted, the daemons will be started.
# If it is preferred that the daemons not autostart on the next reboot, set STARTDAEMONSONREBOOT to "0".

STARTDAEMONSONREBOOT="1"

source /usr/bin/weavedlibrary

######### Main Program #########
main()
{
    getSerialID
    # interactive installer defaults RMT3 service base name to MAC.
    # OEM installer allows OEM to use a different function to set the auto-assigned
    # service names.
    SERVICEBASENAME=$MAC
    interactiveInstall $1
}
######### End Main Program #########
main $1 $2
