diff --git a/Makefile b/Makefile index 6b0a318..b470be6 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,9 @@ it-pretty: @chmod +x scripts/init.sh @scripts/init.sh -it-autonomous: - @echo "soon!" +autonomy: + @chmod +x scripts/fresh-setup.sh + @scripts/fresh-setup.sh acquisition: @chmod +x scripts/get-image.sh diff --git a/scripts/init.sh b/scripts/init.sh index fae6470..01eb35e 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -41,7 +41,6 @@ install_if_needed() { echo $package 'already installed!' fi done - } echo "Updating the repositories..." diff --git a/scripts/prep-rpi-usb.sh b/scripts/prep-rpi-usb.sh index dd78241..6bb8b3b 100755 --- a/scripts/prep-rpi-usb.sh +++ b/scripts/prep-rpi-usb.sh @@ -75,6 +75,17 @@ if [[ ! -z $hostname ]]; then echo "Hostname configured to $hostname" fi +read -p "Would you like to copy Alchemy to the new device? (y/n): " -n1 boot +case $boot in + y | Y) + echo "" + echo "zipping and copying..." + zip -r alchemy ./{Makefile,README.md,resources,scripts} + sudo cp alchemy.zip /mnt/usr/share/ + echo "done!" + ;; +esac + sudo umount ${target}2 sleep 1