Skip to content

Instantly share code, notes, and snippets.

@pascalandy
Created March 12, 2016 22:26
Show Gist options
  • Save pascalandy/92e457179af0a91ac55b to your computer and use it in GitHub Desktop.
Save pascalandy/92e457179af0a91ac55b to your computer and use it in GitHub Desktop.
usage: ./flash [options] name-of-rpi.img
Flash a local or remote Raspberry Pi SD card image.
OPTIONS:
--help|-h Show this message
--bootconf|-C Copy this config file to /boot/config.txt
--config|-c Copy this config file to /boot/device-init.yaml (or occidentalis.txt)
--hostname|-n Set hostname for this SD image
--ssid|-s Set WiFi SSID for this SD image
--password|-p Set WiFI password for this SD image
For HypriotOS devices:
The config file device-init.yaml should look like
hostname: black-pearl
For Raspberry Pi until Hector release:
The config file occidentalis.txt should look like
# hostname for your Hypriot Raspberry Pi:
hostname=hypriot-pi
# basic wireless networking options:
wifi_ssid=SSID
wifi_password=12345
The boot config file config.txt has name/value pairs such as:
max_usb_current=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment