forked from RoninDojo/RoninDojo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathronin
executable file
·59 lines (53 loc) · 1.35 KB
/
ronin
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
#!/bin/bash
# shellcheck source=/dev/null disable=SC2154
. "$HOME"/RoninDojo/Scripts/defaults.sh
. "$HOME"/RoninDojo/Scripts/functions.sh
# Run system checks
_main
test -f "$HOME"/.dialogrc || cp "$HOME"/RoninDojo/Scripts/.dialogrc "$HOME"/.dialogrc
# config file for dialog color
OPTIONS=(1 "Dojo"
2 "Ronin UI"
3 "Credentials"
4 "Applications"
5 "Samourai Toolkit"
6 "System"
7 "Exit RoninDojo")
CHOICE=$(dialog --clear \
--title "$TITLE" \
--menu "$MENU" \
"$HEIGHT" "$WIDTH" "$CHOICE_HEIGHT" \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
bash -c "${ronin_dojo_menu}"
# runs dojo management menu script
;;
2)
bash -c "${ronin_ui_menu}"
# runs Ronin UI menu script
;;
3)
bash -c "${ronin_credentials_menu}"
# runs credentials menu script
;;
4)
bash -c "${ronin_applications_menu}"
# runs extras menu script
;;
5)
bash -c "${ronin_samourai_toolkit_menu}"
# runs extras menu script
;;
6)
bash -c "${ronin_system_menu}"
# runs system menu script
;;
255|9)
_sleep 5 --msg "RoninDojo Exiting in"
exit 0
# exits Ronin
;;
esac