Skip to content

Commit

Permalink
Scripts: fix bad paths in ratos-install.sh after environment.sh merge (
Browse files Browse the repository at this point in the history
  • Loading branch information
Lino77 authored Dec 27, 2024
1 parent d5c197f commit ffdaa46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configuration/scripts/ratos-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
PKGLIST="python3-numpy python3-matplotlib curl git"

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

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

Expand All @@ -18,13 +20,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 "$CFG_DIR"/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 "$CFG_DIR"/boards/*/*.rules /etc/udev/rules.d/
}

verify_ready()
Expand Down

0 comments on commit ffdaa46

Please sign in to comment.