22 lines
744 B
Bash
22 lines
744 B
Bash
#!/bin/bash
|
|
# =============================================================================
|
|
# FIRST BOOT - Run this from USB stick after JetPack flash
|
|
# =============================================================================
|
|
|
|
echo "Copying setup files to home directory..."
|
|
cp -r /media/$USER/*/jetson-setup ~/jetson-setup 2>/dev/null || \
|
|
cp -r /media/*/jetson-setup ~/jetson-setup 2>/dev/null || \
|
|
echo "Please copy jetson-setup folder manually to ~/"
|
|
|
|
if [ -d ~/jetson-setup ]; then
|
|
echo "Files copied. Now run:"
|
|
echo ""
|
|
echo " cd ~/jetson-setup"
|
|
echo " chmod +x setup.sh"
|
|
echo " sudo ./setup.sh"
|
|
echo ""
|
|
else
|
|
echo "ERROR: Could not find jetson-setup on USB"
|
|
echo "Copy manually and run setup.sh"
|
|
fi
|