You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
709 B
31 lines
709 B
6 years ago
|
#!/bin/bash
|
||
|
|
||
|
# CONFIGFILE - configuration of RaspiBlitz
|
||
|
configFile="/mnt/hdd/raspiblitz.conf"
|
||
|
|
||
|
# INFOFILE - state data from bootstrap
|
||
|
infoFile="/home/admin/raspiblitz.info"
|
||
|
|
||
|
# MAIN MENU AFTER SETUP
|
||
|
source ${infoFile}
|
||
|
source ${configFile}
|
||
|
|
||
|
network=bitcoin
|
||
|
|
||
|
echo ""
|
||
|
echo "LCD turns white when shutdown complete."
|
||
|
echo "Then wait 5 seconds and disconnect power."
|
||
|
echo "-----------------------------------------------"
|
||
|
echo "stop lnd - please wait .."
|
||
|
sudo systemctl stop lnd
|
||
|
echo "stop ${network}d (1) - please wait .."
|
||
|
sudo -u bitcoin ${network}-cli stop
|
||
|
sleep 10
|
||
|
echo "stop ${network}d (2) - please wait .."
|
||
|
sudo systemctl stop ${network}d
|
||
|
sleep 3
|
||
|
sync
|
||
|
echo "starting shutdown ..."
|
||
|
sudo shutdown -h now
|
||
|
exit 0
|