2017-01-25 16:01:26 +00:00
|
|
|
#!/bin/sh
|
2017-01-22 19:30:21 +00:00
|
|
|
|
2017-02-17 15:50:12 +00:00
|
|
|
# DEBIAN IMAGE FILE
|
|
|
|
export IMAGE_FILE="original.img";
|
|
|
|
export IMAGE_GZIP="0";
|
|
|
|
|
2017-01-22 19:30:21 +00:00
|
|
|
# WIFI SETTINGS
|
2017-07-17 17:11:53 +00:00
|
|
|
export WIFI_SSID="SATS_AP1";
|
|
|
|
export WIFI_PASS="SATS_PASS";
|
2017-01-23 14:27:54 +00:00
|
|
|
|
|
|
|
# SERVER SETTINGS
|
|
|
|
export SERVER_HOSTNAME="xdrm.io";
|
2017-01-25 16:29:28 +00:00
|
|
|
export SERVER_USERNAME="satsd";
|
2017-01-25 19:59:33 +00:00
|
|
|
|
2017-01-26 15:05:08 +00:00
|
|
|
# DEFAULT SATS SETTINGS
|
2017-02-21 15:11:27 +00:00
|
|
|
export MACHINE_ID="127";
|
2017-01-28 10:42:16 +00:00
|
|
|
export MACHINE_BRANCH="1.0";
|
2017-02-21 15:11:27 +00:00
|
|
|
export MACHINE_STATE="000";
|
2017-07-17 17:11:53 +00:00
|
|
|
export API_URL="https://logauth.xdrm.io/api/machineDefault";
|
2017-01-28 10:42:16 +00:00
|
|
|
export MACHINE_SECRET=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 250);
|
2017-02-19 10:14:55 +00:00
|
|
|
export NEXT_SECRET=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 250);
|
2017-02-19 10:36:44 +00:00
|
|
|
export UNLOCK_CODE=$(tr -dc a-f0-9 < /dev/urandom | head -c 128);
|
2017-02-21 15:11:27 +00:00
|
|
|
export WAREHOUSE_TOKEN="52131065a906de90e26da0732e58400edd6739cfa03fc658e7593abef4a4504e18e66e1a8fe9da374a8e8f753603463e4777789262b3ee945d4bf72dd8d6399c";
|
2017-02-19 15:19:19 +00:00
|
|
|
|
2017-02-23 08:41:45 +00:00
|
|
|
# FOR TESTING ONLY - IF RUN ON LOCAL
|
|
|
|
|
|
|
|
# will create an entry in /etc/hosts to user local SMMP
|
2017-07-17 17:11:53 +00:00
|
|
|
export LOCAL_TEST="10.0.1.4 logauth";
|