Browse Source

Merge pull request #171 from botweb/master

Typo/linebreaks fixes and remove more unneeded packages
#146
Christian Rotzoll 6 years ago
committed by GitHub
parent
commit
18bb8b8eb4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      build.sdcard/raspbianStretchDesktop.sh
  2. 2
      home.admin/00infoLCD.sh
  3. 4
      home.admin/00mainMenu.sh
  4. 2
      home.admin/50torrentHDD.bitcoin.sh
  5. 3
      home.admin/70initLND.sh
  6. 4
      home.admin/XXscreenMonitor.sh

6
build.sdcard/raspbianStretchDesktop.sh

@ -28,7 +28,7 @@ if [ ${isARM} -eq 0 ]; then
fi
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 ..."
baseImage="?"
isDietPi=$(uname -n | grep -c 'DietPi')
@ -78,7 +78,7 @@ if [ "${baseImage}" = "raspbian" ]; then
# set WIFI country so boot does not block
sudo raspi-config nonint do_wifi_country US
# 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 -y autoremove
fi
@ -419,4 +419,4 @@ git clone https://github.com/goodtft/LCD-show.git
sudo chmod -R 755 LCD-show
sudo chown -R admin:admin LCD-show
cd LCD-show/
sudo ./LCD35-show
sudo ./LCD35-show

2
home.admin/00infoLCD.sh

@ -137,7 +137,7 @@ while :
if [ ${#clienterror} -gt 0 ]; then
l1="Waiting for ${network}d to get ready.\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')
if [ ${isVerifying} -gt 0 ]; then
l2="---> Verifying Blocks\n"

4
home.admin/00mainMenu.sh

@ -41,7 +41,7 @@ waitUntilChainNetworkIsReady()
if [ ${#clienterror} -gt 0 ]; then
l1="Waiting for ${network}d to get ready.\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')
if [ ${isVerifying} -gt 0 ]; then
l2="---> Verifying Blocks\n"
@ -285,4 +285,4 @@ case $CHOICE in
./AAunlockLND.sh
./00mainMenu.sh
;;
esac
esac

2
home.admin/50torrentHDD.bitcoin.sh

@ -223,7 +223,7 @@ targetPath2="${targetDir}/${updateTorrentFile}"
echo ""
echo "*** Moving Files ***"
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 mv ${targetPath1}/* /mnt/hdd/bitcoin/

3
home.admin/70initLND.sh

@ -50,6 +50,7 @@ while [ ${chainIsReady} -eq 0 ]
echo ""
else
echo "OK - chainnetwork is working"
echo ""
chainIsReady=1
break
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 chown -R admin:admin /home/admin/.lnd/
echo "OK - LND Macaroons created"
echo ""
else
echo "OK - Macaroons are already copied"
echo ""
fi
###### Unlock Wallet (if needed)

4
home.admin/XXscreenMonitor.sh

@ -123,7 +123,7 @@ if [ ${isRunning} -eq 1 ]; then
echo "killing screen session PID(${sessionPID})"
# kill all child processes of screen sceesion
pkill -P ${sessionPID}
echo "proccesses klilled"
echo "processes killed"
sleep 3
# tell the screen session to quit and wait a bit
screen -S ${name} -X quit 1>/dev/null
@ -168,4 +168,4 @@ else
# continue setup
./60finishHDD.sh
fi
fi

Loading…
Cancel
Save