- Complete MPU-MCU communication setup - LED Matrix text display with configurable parameters - Configuration management with personal data protection - Git template with .gitignore for sensitive data - Automated build and deployment scripts - SSH key management and service scripts
15 lines
489 B
Bash
Executable File
15 lines
489 B
Bash
Executable File
#!/bin/bash
|
|
# Restart script using config.json
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
PYTHONPATH="$PROJECT_ROOT/lib:$PYTHONPATH"
|
|
|
|
python3 -c "
|
|
import sys
|
|
sys.path.insert(0, '$PROJECT_ROOT/lib')
|
|
from config_loader import config
|
|
|
|
arduino_config = config.get_arduino_config()
|
|
print(f'ssh -i {arduino_config[\"ssh_key\"]} {arduino_config[\"user\"]}@{arduino_config[\"hostname\"]} \"systemctl --user restart arduino-unoq\"')
|
|
" | bash |