forked from Gingeropolous/monerodo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmonerodo_os.sh
executable file
·64 lines (58 loc) · 1.93 KB
/
monerodo_os.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 operating script to load upon login
#make username variable global
export u="$USER" #should be deprecated by now, all instances replaced with bob
export current_ip="$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')"
export help="Type 'back' to return to previous menu"
######### Checks if this is first time running, forces change of password and other important settings
first_time="$(awk '{print;}' /monerodo/first_time.txt)"
if [ "$first_time" = 'yes' ]; then
echo "This must be your first time using the Monerodo. You will be asked to setup some files."
echo "Please enter the sudo password if requested"
./change_password.sh
clear
./setup_pool_wallet.sh
clear
./monero_mine_address.sh
rm /home/bob/monerodo/conf_files/first_time.txt
echo "no" > /home/bob/monerodo/conf_files/first_time.txt
sudo cp /home/bob/monerodo/conf_files/first_time.txt /monerodo/
clear
echo "Please goto device management to activate the pool and miner."
echo "Press enter to continue"
read input
fi
#Bring scripts up to date.
echo "Performing git pull from repository"
cd /home/bob/monerodo/
#REMOVE COMMENT BELOW WHEN RELEASE SOFTWARE!!!
git pull
chmod +x *.sh
#Menu
while true
do
echo "================="
echo "Monerodo Menu"
echo "================="
echo "[1] Monerodo device management"
echo "[2] Manage or create your account with Monero Core"
echo "[3] Manage or create your account with Monerodo Guided Wallet"
echo "[4] Make QR codes"
echo "[5] Restore your account from mnemonic seed"
echo "[6] Generate view only wallet from viewkey"
echo "[q] Quit to the terminal"
echo -e "\n"
echo "You can type 'back' in any text entry to return to the previous menu"
echo -e "Enter your selection \c"
read answer
case "$answer" in
1) ./device_management.sh;;
2) ./monero_simplewallet.sh;;
3) ./monerodo_wallet.sh;;
4) ./qr_codes.sh;;
5) ./restore.sh;;
6) ./viewkey.sh;;
q) exit ;;
esac
clear
done