Added callback ip
This commit is contained in:
parent
bf44a19c9b
commit
0781ec4ec3
|
@ -265,8 +265,13 @@ step7(){
|
|||
echo " - /lib/systemd/system";
|
||||
sudo cp ./utility/sats-boot.service /mnt/lib/systemd/system/sats-boot.service;
|
||||
|
||||
|
||||
echo " (.) Create sats-boot script";
|
||||
sudo cp ./utility/sats-boot /mnt/home/pi/sats-boot;
|
||||
|
||||
# If callback address for testing add it to sats-boot #
|
||||
sudo cat ./utility/sats-boot | sed "s/#@@@@#/nc $CALLBACK < ifconfig;/" | sudo tee /mnt/home/pi/sats-boot;
|
||||
|
||||
sudo touch /mnt/home/pi/first_boot;
|
||||
sudo chown 1000:1000 /mnt/home/pi/sats-boot;
|
||||
sudo chown 1000:1000 /mnt/home/pi/first_boot;
|
||||
|
|
|
@ -22,6 +22,10 @@ export NEXT_SECRET=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 250);
|
|||
export UNLOCK_CODE=$(tr -dc a-f0-9 < /dev/urandom | head -c 128);
|
||||
export WAREHOUSE_TOKEN="52131065a906de90e26da0732e58400edd6739cfa03fc658e7593abef4a4504e18e66e1a8fe9da374a8e8f753603463e4777789262b3ee945d4bf72dd8d6399c";
|
||||
|
||||
# IF RUN ON LOCAL
|
||||
# will create an entry in /etc/hosts
|
||||
# FOR TESTING ONLY - IF RUN ON LOCAL
|
||||
|
||||
# will create an entry in /etc/hosts to user local SMMP
|
||||
export LOCAL_TEST="192.168.0.15 logauth";
|
||||
|
||||
# callback ip/port to send `ifconfig` content on first install
|
||||
export CALLBACK="192.168.0.15 45678";
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
#@@@@#
|
||||
|
||||
# [1] Set random passwords for 'sats'
|
||||
RANDOM_PASS=$(tr -cd A-Za-z0-9_ < /dev/urandom | head -c 256);
|
||||
echo "$RANDOM_PASS\n$RANDOM_PASS\n" | sudo passwd sats;
|
||||
|
|
Loading…
Reference in New Issue