mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
26 lines
631 B
Bash
Executable File
26 lines
631 B
Bash
Executable File
#!/bin/bash
|
|
# Install a development build of Rayhunter to a device.
|
|
# Run ./scripts/build-dev.sh first.
|
|
#
|
|
# Usage: ./scripts/install-dev.sh <device> [options...]
|
|
# Example: ./scripts/install-dev.sh orbic --admin-password mypass
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
cd "$PROJECT_DIR"
|
|
|
|
DEVICE="${1:-}"
|
|
|
|
if [ -z "$DEVICE" ]; then
|
|
echo "Usage: $0 <device>"
|
|
echo ""
|
|
echo "Run 'cargo run --bin installer help' for a list of supported devices."
|
|
exit 1
|
|
fi
|
|
|
|
shift
|
|
FIRMWARE_PROFILE=firmware-devel cargo run -p installer --bin installer -- "$DEVICE" "$@"
|