16 lines
421 B
Bash
16 lines
421 B
Bash
#!/usr/bin/env bash
|
|
# Run on the Proxmox HOST (root) when the host has internet.
|
|
# Builds usbboot (rpiboot) and installs to /opt/usbboot so the auto-flash can run.
|
|
|
|
set -e
|
|
apt-get update
|
|
apt-get install -y libusb-1.0-0-dev git
|
|
cd /tmp
|
|
rm -rf usbboot
|
|
git clone --depth=1 https://github.com/raspberrypi/usbboot
|
|
cd usbboot
|
|
make
|
|
mkdir -p /opt/usbboot
|
|
cp rpiboot /opt/usbboot/
|
|
echo "usbboot installed at /opt/usbboot/rpiboot"
|