-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.sh
101 lines (82 loc) · 3.73 KB
/
configure.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#############################################################################
## configure.sh
##
## This configuration script allows the ability to configure
## config files for Smith-Pad-OS or Arch-Linux based distributions.
#############################################################################
clear
echo """
----------------------------------------------------------
- Please choose the options:
----------------------------------------------------------
-
-
- 1) Configure .bashrc configuration
-
-
-
- 2) Install Smith-Pad-OS-Service-Tool
-
-
- exit) Exit the Program
----------------------------------------------------------
"""
while :
do
read CHOICE
case $CHOICE in
## If the user chooses the first choice, it will configure
## the .bashrc configuration file globally. For now, it
## will notify the user the option is not avaiable temporarily.
1)
clear
notify-send '⚠️ Unfortunately, this choice is not available temporarily to use. Until it is ready, please choose another option.'
echo """
--------------------------------------------------------
- /!\ Unfortunately this choice is not available
- temporarily to use. Until it is ready, please
- choose another option.
--------------------------------------------------------
"""
;;
## If the user chooses the second choice, it will install
## the Smith-Pad-OS-Service-Tool to the /usr/bin folder
2)
clear
notify-send '⚠️ Please enter the adminstrator password before proceeding to install Smith-Pad-OS-Service-Tool'
echo """
#################################################################################
# /!\ Please enter the adminstrator password before proceeding to
# install Smith-Pad-OS-Service-Tool
#
#
# |i| What this would do?
#
# * Installs Smith-Pad-OS-Service Tool to [/usr/bin/service-me]
# * This will reboot the system
#
# /!\ Make sure the system that you are using is fully backed up, before
# proceeding to re-install packages. Technology is not always perfect.
# and if you don't want to proceed to re-install the packages, please
# contact your system adminstrator.
#################################################################################
"""
sudo su
;;
## After the user types 'exit', it will exit the program
exit)
exit
;;
## If the user presses a unknown character, it will inform
## the user to choose the correct commands.
*)
clear
notify-send '⚠️ Error: ' 'The keystroke that you have enter is not recognizable. Please try again.'
echo """
---------------------------------------------------------
- Error: The keystroke that you entered is not
- recognizable. Please try again.
---------------------------------------------------------
"""
esac
done