setup.sh (606B)
1 #!/bin/bash 2 3 # SD card /boot partition must be mounted on $1 4 5 [ -z "$1" ] && { echo "Usage: $0 <root-path>"; exit 1; } 6 [ -e "$1/boot" -a -e "$1/root" ] || { echo "boot or root is missing from $1"; exit 1; } 7 8 ROOT=$1 9 # Enable ssh 10 touch $ROOT/boot/ssh 11 cp ./configs/wpa_supplicant.conf $ROOT/boot/ 12 cp ./configs/userconf $ROOT/boot/ 13 cp ./configs/config.txt $ROOT/boot/ 14 cp ./configs/issue $ROOT/root/etc/issue 15 16 # Check out the sdl2-life source 17 mkdir $ROOT/root/opt/ 18 cd $ROOT/root/opt/ 19 GIT_SSL_NO_VERIFY=true git clone https://github.com/bcl/sdl2-life.git 20 21 echo "SETUP YOUR AP IN $ROOT/boot/wpa_supplicant.conf"