Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ratos-install.sh #54

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions configuration/scripts/ratos-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
PKGLIST="python3-numpy python3-matplotlib curl git"

SCRIPT_DIR=$( cd -- "$( dirname -- "$(realpath -- "${BASH_SOURCE[0]}")" )" &> /dev/null && pwd )
SRC_DIR=$(realpath "$SCRIPT_DIR/..")
BASE_DIR=$(realpath "$SRC_DIR/..")

# shellcheck source=./configuration/scripts/ratos-common.sh
source "$SCRIPT_DIR"/ratos-common.sh

Expand All @@ -18,13 +21,13 @@ install_printer_config()
{
report_status "Copying printer configuration"
PRINTER_CFG="${RATOS_PRINTER_DATA_DIR}/config/printer.cfg"
tail -n +2 "$SCRIPT_DIR"/templates/initial-printer.template.cfg > "$PRINTER_CFG"
tail -n +2 "$BASE_DIR"/configuration/templates/initial-printer.template.cfg > "$PRINTER_CFG"
}

install_udev_rules()
{
report_status "Installing udev rules"
sudo ln -s "$SCRIPT_DIR"/boards/*/*.rules /etc/udev/rules.d/
sudo ln -s "$BASE_DIR"/configuration/boards/*/*.rules /etc/udev/rules.d/
}

verify_ready()
Expand Down
Loading