From 56d1b7b71525ec08b74a430b634386c0ea93ee85 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Fri, 17 Aug 2018 13:21:39 +0300 Subject: [PATCH] Move image-setup.sh to docs/. --- image-setup.sh => docs/image-setup.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename image-setup.sh => docs/image-setup.sh (96%) diff --git a/image-setup.sh b/docs/image-setup.sh similarity index 96% rename from image-setup.sh rename to docs/image-setup.sh index e01b7ee..6cd08bf 100755 --- a/image-setup.sh +++ b/docs/image-setup.sh @@ -25,7 +25,7 @@ question "Enter version (e.g. \"1.2.3\") being built:" read TAG working "Updating version file" -echo -e "$TAG\n\nhttps://github.com/futurice/chilipie-kiosk" > home/.chilipie-kiosk-version +echo -e "$TAG\n\nhttps://github.com/futurice/chilipie-kiosk" > ../home/.chilipie-kiosk-version working "Generating first-boot.html" if [ ! -d "node_modules" ]; then @@ -33,9 +33,9 @@ if [ ! -d "node_modules" ]; then fi rm -rf md-input md-output mkdir md-input md-output -cp docs/first-boot.md md-input +cp ../docs/first-boot.md md-input ./node_modules/.bin/generate-md --layout github --input md-input/ --output md-output/ -./node_modules/.bin/html-inline -i md-output/first-boot.html > home/first-boot.html +./node_modules/.bin/html-inline -i md-output/first-boot.html > ../home/first-boot.html rm -rf md-input md-output question "Mount the SD card (press enter when ready)" @@ -142,7 +142,7 @@ ssh "sudo apt-get update && sudo apt-get install -y vim matchbox-window-manager working "Setting home directory default content" ssh "rm -rfv /home/pi/*" -scp $(find home -type file) +scp $(find ../home -type file) working "Setting splash screen background" ssh "sudo rm /usr/share/plymouth/themes/pix/splash.png && sudo ln -s /home/pi/background.png /usr/share/plymouth/themes/pix/splash.png" @@ -187,6 +187,7 @@ working "Safely unmounting the card" diskutil unmountDisk "$DISK" working "Dumping the image from the card" +cd .. echo "This may take a long time" echo "You may be prompted for your password by sudo" sudo dd bs=1m count="$SD_SIZE_SAFE" if="$DISK" of="chilipie-kiosk-$TAG.img"