forked from Gingeropolous/monerodo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathxmr_unmanaged.sh
executable file
·64 lines (55 loc) · 1.62 KB
/
xmr_unmanaged.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
#MONERODO Manage Monero Settings
#Menu
while true
do
clear
echo "================="
echo "Monero Management Settings"
echo "================="
echo "[UN] Run monero core in an extremely unmanaged fashion"
echo " This uses the MoneroPulse system for checkpoints. If your local node doesn't agree, it will trust the MoneroPulse network"
echo "[MAN] Run monero core in a self-managed fashion"
echo " This requires you (the user) to stay up to date with the state of the Monero network"
echo -e "\n"
echo -e "Enter your selection \c"
read answer
echo "Enter upload rate (2000)"
read upload
echo "Enter download rate (2000)"
read dload
case "$answer" in
UN)
# WRITE CONF FILE AND MOVE TO /etc/init/
sudo service mos_bitmonero stop
echo -e "start on stopped mos_monerodoip \n\
stop on shutdown \n\
expect daemon \n\
\n\
respawn \n\
respawn limit 10 10 \n\
\n\
exec bitmonerod --detach --rpc-bind-ip $current_ip --limit-rate-up $upload --limit-rate-down $download --enforce-dns-checkpointing
" > /home/bob/monerodo/conf_files/mos_bitmonero.conf
sudo cp mos_bitmonero.conf /etc/init/
sudo service mos_bitmonero start
;;
MAN)
# WRITE CONF FILE AND MOVE TO /etc/init/
sudo service mos_bitmonero stop
echo -e "start on stopped mos_monerodoip \n\
stop on shutdown \n\
expect daemon \n\
\n\
respawn \n\
respawn limit 10 10 \n\
\n\
exec bitmonerod --detach --rpc-bind-ip $current_ip --limit-rate-up $upload --limit-rate-down $download
" > /home/bob/monerodo/conf_files/mos_bitmonero.conf
sudo cp mos_bitmonero.conf /etc/init/
sudo service mos_bitmonero start
;;
r) exit ;;
esac
clear
done