-
Notifications
You must be signed in to change notification settings - Fork 3
/
menu.sh
49 lines (41 loc) · 995 Bytes
/
menu.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
#!/usr/bin/env bash
#####################################################
# Source code https://github.com/end222/pacmenu
# Updated by afiniel for crypto use...
#####################################################
source /etc/functions.sh
cd $HOME/yiimpool/daemon_builder
RESULT=$(dialog --stdout --nocancel --default-item 1 --title "Afiniel Yiimpool Daemon Installer v2.0" --menu "Choose one" -1 60 8 \
' ' "- New and existing Daemon builds and upgrade -" \
1 "Build New Coin Daemon from Source Code" \
2 "Upgrade an Existing Coin Daemon" \
' ' "- If your last coin failed to build try this -" \
3 "Daemon Build Failed - Help!" \
4 Exit)
if [ $RESULT = ]
then
bash $(basename $0) && exit;
fi
if [ $RESULT = 1 ]
then
clear;
cd $HOME/yiimpool/daemon_builder
source menu2.sh;
fi
if [ $RESULT = 2 ]
then
clear;
cd $HOME/yiimpool/daemon_builder
source menu3.sh;
fi
if [ $RESULT = 3 ]
then
clear;
cd $HOME/yiimpool/daemon_builder
source errors.sh;
fi
if [ $RESULT = 4 ]
then
clear;
exit;
fi