Skip to content

Commit

Permalink
typo & logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fe51 committed Jun 11, 2024
1 parent ab59fbe commit 81f3f49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ vars/main.yml
credentials.json

# .env file
*.env
*.env
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PI_HOST="THE ACTUAL IP ADRESS OF YOUR RPI"
SSH_KEYS_DIR_PATH="PATH_TO_DIRECTORY_CONTAINING_SSH_PUB_KEYS"
## VPN config info
OPENVPN_CONFIG_FILE_PATH = "PATH_TO_YOUR_OPEN_VPN_FILE.ovpn"
OPENVPN_CONFIG_FILE_PATH="PATH_TO_YOUR_OPEN_VPN_FILE.ovpn"
OPEN_VPN_PASSWORD="THE_RPI_OPEN_VPN_PASSWORD"
## pyro-engine config files
Expand Down
4 changes: 3 additions & 1 deletion setup_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ echo "=== Network setup: wifi(optionnal) & static ethernet ==="
if [[ -n "${WIFI_SSID// }" ]]; then
echo "WIFI SSID provided, setting up wifi"
ssh pi@$PI_HOST sudo nmcli con add type wifi ifname wlan0 con-name $WIFI_SSID ssid $WIFI_SSID -- wifi-sec.key-mgmt wpa-psk wifi-sec.psk $WIFI_PASSWORD connection.autoconnect yes
fi

echo "Setting up static ethernet "
echo "If you are connected to the raspbeery via ethernet, you may lose the connection in a few moments. This is normal, as you have configured a fixed ip address."
commands=(
"sudo nmcli connection add type ethernet ifname eth0 con-name static-eth0 ipv4.addresses $STATIC_ETHERNET_IP/16 ipv4.method manual"
Expand All @@ -136,4 +138,4 @@ for cmd in "${commands[@]}"; do
else
echo "Error while executing command \"$cmd\"."
fi
done
done

0 comments on commit 81f3f49

Please sign in to comment.