-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathxmr_pool_settings.sh
executable file
·36 lines (35 loc) · 1016 Bytes
/
xmr_pool_settings.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
#!/bin/bash
#MONERODO pool settings
#Menu
export mos_service="mos_monerowallet"
this_service="pool wallet and server"
while true
do
clear
echo "================="
echo "Manage $this_service settings"
echo "================="
cat /home/bob/.monerodo/status_poolwallet.txt
export running=$(service $mos_service status)
./service_status.sh
echo "================="
echo "[0] Modify pool server conf file (setup the pool wallet)"
echo "[1] Turn pool on now and on boot"
echo "[2] Turn pool off"
echo "[3] Turn pool off now and stop from running on boot"
echo "[r] Return to device management menu"
echo ""
echo "Please visit http://$current_ip/pool to see whether your pool is running"
echo -e "\n"
echo -e "Enter your selection and press enter or just press enter to check status: \c"
read answer
case "$answer" in
0) ./setup_pool_wallet.sh;;
1) ./service_on.sh;;
2) ./service_off.sh;;
3) ./service_off.sh
sudo rm /etc/init/$mos_service.conf;;
r) exit ;;
esac
clear
done