Skip to content

Commit

Permalink
Update ports in install scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Jun 9, 2024
1 parent 59baf9e commit a55db6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion install-access-point
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ DEFAULT_TARGET=10.0.100.2
BINARY_FILE=frc-radio-api
USER=root
SSH_ARGS="-o ConnectTimeout=5 -o StrictHostKeyChecking=no"
API_PORT=8081

read -p "Device IP address [$DEFAULT_TARGET]: " TARGET
TARGET=${TARGET:-$DEFAULT_TARGET}
Expand All @@ -24,9 +23,11 @@ RADIO_TYPE=`ssh $SSH_ARGS $USER@$TARGET "uci get system.@system[0].model 2>&1 |
if [ $RADIO_TYPE = "0" ]; then
echo "Detected Vivid-Hosting radio type."
CONFIG_FILE=wireless-boot-vh
API_PORT=80
else
echo "Detected Linksys radio type."
CONFIG_FILE=wireless-boot-linksys
API_PORT=8081
fi

echo "\nDeploying to $TARGET..."
Expand Down
2 changes: 1 addition & 1 deletion install-robot-radio
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
BINARY_FILE=frc-radio-api
USER=root
SSH_ARGS="-o ConnectTimeout=5 -o StrictHostKeyChecking=no"
API_PORT=8081
API_PORT=80

read -p "Device IP address: " TARGET
TARGET=${TARGET:-$DEFAULT_TARGET}
Expand Down

0 comments on commit a55db6d

Please sign in to comment.