mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +02:00
Merge pull request #171 from botweb/master
Typo/linebreaks fixes and remove more unneeded packages
This commit is contained in:
@@ -28,7 +28,7 @@ if [ ${isARM} -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
echo "OK running on Linux ARM architecture."
|
echo "OK running on Linux ARM architecture."
|
||||||
|
|
||||||
# keep in mind thet DietPi for Raspberry is also a stripped down Raspbian
|
# keep in mind that DietPi for Raspberry is also a stripped down Raspbian
|
||||||
echo "Detect Base Image ..."
|
echo "Detect Base Image ..."
|
||||||
baseImage="?"
|
baseImage="?"
|
||||||
isDietPi=$(uname -n | grep -c 'DietPi')
|
isDietPi=$(uname -n | grep -c 'DietPi')
|
||||||
@@ -78,7 +78,7 @@ if [ "${baseImage}" = "raspbian" ]; then
|
|||||||
# set WIFI country so boot does not block
|
# set WIFI country so boot does not block
|
||||||
sudo raspi-config nonint do_wifi_country US
|
sudo raspi-config nonint do_wifi_country US
|
||||||
# extra: remove some big packages not needed
|
# extra: remove some big packages not needed
|
||||||
sudo apt-get remove -y --purge libreoffice*
|
sudo apt-get remove -y --purge libreoffice* oracle-java* chromium-browser nuscratch scratch sonic-pi minecraft-pi python-pygame
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
sudo apt-get -y autoremove
|
sudo apt-get -y autoremove
|
||||||
fi
|
fi
|
||||||
@@ -419,4 +419,4 @@ git clone https://github.com/goodtft/LCD-show.git
|
|||||||
sudo chmod -R 755 LCD-show
|
sudo chmod -R 755 LCD-show
|
||||||
sudo chown -R admin:admin LCD-show
|
sudo chown -R admin:admin LCD-show
|
||||||
cd LCD-show/
|
cd LCD-show/
|
||||||
sudo ./LCD35-show
|
sudo ./LCD35-show
|
||||||
|
@@ -137,7 +137,7 @@ while :
|
|||||||
if [ ${#clienterror} -gt 0 ]; then
|
if [ ${#clienterror} -gt 0 ]; then
|
||||||
l1="Waiting for ${network}d to get ready.\n"
|
l1="Waiting for ${network}d to get ready.\n"
|
||||||
l2="---> Starting Up\n"
|
l2="---> Starting Up\n"
|
||||||
l3="Can take longer if devcie was off."
|
l3="Can take longer if device was off."
|
||||||
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
||||||
if [ ${isVerifying} -gt 0 ]; then
|
if [ ${isVerifying} -gt 0 ]; then
|
||||||
l2="---> Verifying Blocks\n"
|
l2="---> Verifying Blocks\n"
|
||||||
|
@@ -41,7 +41,7 @@ waitUntilChainNetworkIsReady()
|
|||||||
if [ ${#clienterror} -gt 0 ]; then
|
if [ ${#clienterror} -gt 0 ]; then
|
||||||
l1="Waiting for ${network}d to get ready.\n"
|
l1="Waiting for ${network}d to get ready.\n"
|
||||||
l2="---> Starting Up\n"
|
l2="---> Starting Up\n"
|
||||||
l3="Can take longer if devcie was off."
|
l3="Can take longer if device was off."
|
||||||
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
isVerifying=$(echo "${clienterror}" | grep -c 'Verifying blocks')
|
||||||
if [ ${isVerifying} -gt 0 ]; then
|
if [ ${isVerifying} -gt 0 ]; then
|
||||||
l2="---> Verifying Blocks\n"
|
l2="---> Verifying Blocks\n"
|
||||||
@@ -285,4 +285,4 @@ case $CHOICE in
|
|||||||
./AAunlockLND.sh
|
./AAunlockLND.sh
|
||||||
./00mainMenu.sh
|
./00mainMenu.sh
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@@ -223,7 +223,7 @@ targetPath2="${targetDir}/${updateTorrentFile}"
|
|||||||
echo ""
|
echo ""
|
||||||
echo "*** Moving Files ***"
|
echo "*** Moving Files ***"
|
||||||
date +%s
|
date +%s
|
||||||
echo "can take some minutes ... öease wait"
|
echo "can take some minutes... please wait"
|
||||||
|
|
||||||
sudo mkdir /mnt/hdd/bitcoin 2>/dev/null
|
sudo mkdir /mnt/hdd/bitcoin 2>/dev/null
|
||||||
sudo mv ${targetPath1}/* /mnt/hdd/bitcoin/
|
sudo mv ${targetPath1}/* /mnt/hdd/bitcoin/
|
||||||
|
@@ -50,6 +50,7 @@ while [ ${chainIsReady} -eq 0 ]
|
|||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
echo "OK - chainnetwork is working"
|
echo "OK - chainnetwork is working"
|
||||||
|
echo ""
|
||||||
chainIsReady=1
|
chainIsReady=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -189,8 +190,10 @@ if [ ${macaroonExists} -eq 0 ]; then
|
|||||||
sudo cp /home/bitcoin/.lnd/data/chain/${network}/${chain}net/admin.macaroon /home/admin/.lnd/data/chain/${network}/${chain}net
|
sudo cp /home/bitcoin/.lnd/data/chain/${network}/${chain}net/admin.macaroon /home/admin/.lnd/data/chain/${network}/${chain}net
|
||||||
sudo chown -R admin:admin /home/admin/.lnd/
|
sudo chown -R admin:admin /home/admin/.lnd/
|
||||||
echo "OK - LND Macaroons created"
|
echo "OK - LND Macaroons created"
|
||||||
|
echo ""
|
||||||
else
|
else
|
||||||
echo "OK - Macaroons are already copied"
|
echo "OK - Macaroons are already copied"
|
||||||
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###### Unlock Wallet (if needed)
|
###### Unlock Wallet (if needed)
|
||||||
|
@@ -123,7 +123,7 @@ if [ ${isRunning} -eq 1 ]; then
|
|||||||
echo "killing screen session PID(${sessionPID})"
|
echo "killing screen session PID(${sessionPID})"
|
||||||
# kill all child processes of screen sceesion
|
# kill all child processes of screen sceesion
|
||||||
pkill -P ${sessionPID}
|
pkill -P ${sessionPID}
|
||||||
echo "proccesses klilled"
|
echo "processes killed"
|
||||||
sleep 3
|
sleep 3
|
||||||
# tell the screen session to quit and wait a bit
|
# tell the screen session to quit and wait a bit
|
||||||
screen -S ${name} -X quit 1>/dev/null
|
screen -S ${name} -X quit 1>/dev/null
|
||||||
@@ -168,4 +168,4 @@ else
|
|||||||
# continue setup
|
# continue setup
|
||||||
./60finishHDD.sh
|
./60finishHDD.sh
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user