Skip to content

Commit

Permalink
scripts/install.sh: Add entries for sub8 and navigator-two to /etc/hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Sep 21, 2024
1 parent b738db5 commit afd0ee6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,14 @@ mil_user_setup_rc() {
fi
}

add_hosts_entry() {
sudo grep -qxF "$1" /etc/hosts || echo "$1" | sudo tee -a /etc/hosts >/dev/null
}

# Add /etc/hosts entry for vehicles
add_hosts_entry "192.168.37.60 sub8"
add_hosts_entry "192.168.37.82 navigator-two"

# Sets up the catkin workspace so that user can build
# If the repo is already cloned here, it will build the MIL code
# catkin_init_workspace is superfluous, catkin_make is all you need
Expand Down

0 comments on commit afd0ee6

Please sign in to comment.