mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
added read key to disconenct 2nd HDD after copy
This commit is contained in:
@@ -27,7 +27,7 @@ echo "will use code from branch --> '${wantedBranch}'"
|
|||||||
|
|
||||||
# 2nd optional parameter is the GITHUB-USERNAME to get code from when
|
# 2nd optional parameter is the GITHUB-USERNAME to get code from when
|
||||||
# provisioning sd card with raspiblitz assets/scripts later on
|
# provisioning sd card with raspiblitz assets/scripts later on
|
||||||
# if 2nd paramter is used - 1st is mandatory
|
# if 2nd parameter is used - 1st is mandatory
|
||||||
echo "*** CHECK INPUT PARAMETERS ***"
|
echo "*** CHECK INPUT PARAMETERS ***"
|
||||||
githubUser="$2"
|
githubUser="$2"
|
||||||
if [ ${#githubUser} -eq 0 ]; then
|
if [ ${#githubUser} -eq 0 ]; then
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ⚡️ this setup is tested on an ODroid HC1 ⚡️
|
# ⚡️ this setup is tested on an ODroid HC1 ⚡️
|
||||||

|

|
||||||
|
|
||||||
there is no LCD, but the [hardware specs](hw_comparison.md) are convincing:
|
there is no LCD, but the [hardware specs](hw_comparison.md) make up for it.
|
||||||
|
|
||||||
|
|
||||||
## Setting up the DietPi OS
|
## Setting up the DietPi OS
|
||||||
@@ -56,12 +56,13 @@ Should end up here on version v6.20.6 or higher:
|
|||||||

|

|
||||||
|
|
||||||
|
|
||||||
run the SDcard build script in this format:
|
run the SDcard build script in this format:
|
||||||
`wget https://raw.githubusercontent.com/[GITHUB-USERNAME]/raspiblitz/[BRANCH]/build.sdcard/raspbianStretchDesktop.sh && sudo bash raspbianStretchDesktop.sh [BRANCH] [GITHUB-USERNAME]`
|
`wget https://raw.githubusercontent.com/[GITHUB-USERNAME]/raspiblitz/[BRANCH]/build.sdcard/raspbianStretchDesktop.sh && sudo bash raspbianStretchDesktop.sh [BRANCH] [GITHUB-USERNAME]`
|
||||||
|
|
||||||
|
Be aware of that the fork needs to be called `raspiblitz` for the git download to work.
|
||||||
if you intend to use @openoms`s forked version:
|
if you intend to use @openoms`s forked version:
|
||||||
|
|
||||||
`wget https://raw.githubusercontent.com/openoms/HardwareNode/raspiblitz-dev/build.sdcard/raspbianStretchDesktop.sh && sudo bash raspbianStretchDesktop.sh raspiblitz-dev openoms`
|
`wget https://raw.githubusercontent.com/openoms/raspiblitz/raspiblitz-dev/build.sdcard/raspbianStretchDesktop.sh && sudo bash raspbianStretchDesktop.sh raspiblitz-dev openoms`
|
||||||
|
|
||||||
See my example output: [sdcard_build_output](DietPi/sdcard_build_output)
|
See my example output: [sdcard_build_output](DietPi/sdcard_build_output)
|
||||||
|
|
||||||
|
@@ -126,7 +126,10 @@ sudo rsync --append --info=progress2 -a /mnt/genesis/bitcoin/blocks /mnt/hdd/bit
|
|||||||
sudo umount -l /mnt/genesis
|
sudo umount -l /mnt/genesis
|
||||||
echo "OK - Copy done :)"
|
echo "OK - Copy done :)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "---> You can now disconnect the 2nd HDD"
|
# echo "---> You can now disconnect the 2nd HDD"
|
||||||
|
# If the Odorid HC1 reboots with a HDD attached to the USB it prioritises it over the SATA
|
||||||
|
echo "---> Disconnect the 2nd HDD and press a Enter"
|
||||||
|
read key
|
||||||
|
|
||||||
# set SetupState
|
# set SetupState
|
||||||
# sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
|
# sudo sed -i "s/^setupStep=.*/setupStep=50/g" /home/admin/raspiblitz.info
|
||||||
@@ -195,7 +198,7 @@ if [ ${anyDataAtAll} -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
# when no data transferred - just delete bitcoin base dir again
|
# when no data transferred - just delete bitcoin base dir again
|
||||||
sudo rm -rf /mnt/hdd/bitcoin
|
sudo rm -rf /mnt/hdd/bitcoin
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user