-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
55 lines (42 loc) · 974 Bytes
/
start.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
#!/bin/bash
# Ensure we are running under bash
if [ "$BASH_SOURCE" = "" ]; then
/bin/bash "$0"
exit 0
fi
# Load bash-menu script
#
# NOTE: Ensure this is done before using
# or overriding menu functions/variables.
. functions/menus.sh
. constants/constants
################################
## First time setup
################################
if [!menuSystem]; then
storeSystem
fi
startmenu() {
menuItems=(
"1. Update your system"
"2. Exit"
)
## Menu Item Actions
menuActions=(
updating_system
exitmenu
)
## Override some menu defaults
menuTitle=" Welcome to the Linux System Manager! Select an option:"
menuFooter=" Enter=Select, Navigate via Up/Down/First number/letter"
menuWidth=60
menuLeft=25
menuHighlight=$DRAW_COL_YELLOW
################################
## Run Menu
################################
menuInit
menuLoop
exit 0
}
startmenu