mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 12:23:11 +02:00
add sparko to menu
This commit is contained in:
@@ -48,8 +48,7 @@ fi
|
|||||||
|
|
||||||
# just available for CLN
|
# just available for CLN
|
||||||
if [ "${lightning}" == "cln" ]; then
|
if [ "${lightning}" == "cln" ]; then
|
||||||
# nothing yet
|
OPTIONS+=(k 'Sparko' ${sphinxrelay})
|
||||||
echo ""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OPTIONS+=(j 'JoinMarket' ${joinmarket})
|
OPTIONS+=(j 'JoinMarket' ${joinmarket})
|
||||||
@@ -443,6 +442,27 @@ else
|
|||||||
echo "Whitepaper setting unchanged."
|
echo "Whitepaper setting unchanged."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# sparko process choice
|
||||||
|
choice="off"; check=$(echo "${CHOICES}" | grep -c "k")
|
||||||
|
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||||
|
if [ "${sparko}" != "${choice}" ]; then
|
||||||
|
echo "# Sparko on mainnet Setting changed .."
|
||||||
|
anychange=1
|
||||||
|
/home/admin/config.scripts/cln-plugin.sparko.sh ${choice} mainnet
|
||||||
|
errorOnInstall=$?
|
||||||
|
if [ "${choice}" = "on" ]; then
|
||||||
|
if [ ${errorOnInstall} -eq 0 ]; then
|
||||||
|
/home/admin/config.scripts/cln-plugin.sparko.sh menu mainnet
|
||||||
|
else
|
||||||
|
l1="# !!! FAIL on Sparko on mainnet install !!!"
|
||||||
|
l2="# Try manual install on terminal after reboot with:"
|
||||||
|
l3="/home/admin/config.scripts/cln-plugin.sparko.sh on mainnet"
|
||||||
|
dialog --title 'FAIL' --msgbox "${l1}\n${l2}\n${l3}" 7 65
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "# Sparko on mainnet Setting unchanged."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ${anychange} -eq 0 ]; then
|
if [ ${anychange} -eq 0 ]; then
|
||||||
dialog --msgbox "NOTHING CHANGED!\nUse Spacebar to check/uncheck services." 8 58
|
dialog --msgbox "NOTHING CHANGED!\nUse Spacebar to check/uncheck services." 8 58
|
||||||
|
Reference in New Issue
Block a user