From 60336c16824f46d4f96d79f341796b71cdfab414 Mon Sep 17 00:00:00 2001 From: arno Date: Wed, 8 Jul 2020 21:27:55 +0200 Subject: [PATCH 1/2] Fix: Insert source file in /home/admin/.bashrc --- build_sdcard.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 build_sdcard.sh diff --git a/build_sdcard.sh b/build_sdcard.sh old mode 100644 new mode 100755 index 43bc20ae2..ae5e8bbae --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -573,7 +573,7 @@ fi # "*** LND ***" ## based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_40_lnd.md#lightning-lnd ## see LND releases: https://github.com/lightningnetwork/lnd/releases -lndVersion="0.10.2-beta.rc4" +lndVersion="0.10.2-beta" # olaoluwa PGPpkeys="https://keybase.io/roasbeef/pgp_keys.asc" @@ -699,9 +699,12 @@ sudo bash -c "echo 'net.core.wmem_max = 1048576' >> /etc/sysctl.conf" # install a command-line fuzzy finder (https://github.com/junegunn/fzf) sudo apt -y install fzf +sudo bash -c "echo '' >> /home/admin/.bashrc" +sudo bash -c "echo '# Raspiblitz' >> /home/admin/.bashrc" + homeFile=/home/admin/.bashrc keyBindings="source /usr/share/doc/fzf/examples/key-bindings.bash" -keyBindingsDone=$(cat ${homeFile}|grep -c ${keyBindings}) +keyBindingsDone=$(cat $homeFile|grep -c "$keyBindings") if [ ${keyBindingsDone} -eq 0 ]; then sudo bash -c "echo 'source /usr/share/doc/fzf/examples/key-bindings.bash' >> /home/admin/.bashrc" From 7659889a24b96e0f6a08e72c2fa0bfcb501fcdf0 Mon Sep 17 00:00:00 2001 From: arno Date: Wed, 8 Jul 2020 22:55:29 +0200 Subject: [PATCH 2/2] Fix: Insert source file in /home/admin/.bashrc One file was not inserted into /home/admin/.bashrc by the source command --- build_sdcard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_sdcard.sh b/build_sdcard.sh index ae5e8bbae..5d99e7ef0 100755 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -573,7 +573,7 @@ fi # "*** LND ***" ## based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_40_lnd.md#lightning-lnd ## see LND releases: https://github.com/lightningnetwork/lnd/releases -lndVersion="0.10.2-beta" +lndVersion="0.10.2-beta.rc4" # olaoluwa PGPpkeys="https://keybase.io/roasbeef/pgp_keys.asc"