-
Notifications
You must be signed in to change notification settings - Fork 0
/
initial_setup.sh
executable file
·55 lines (46 loc) · 1.63 KB
/
initial_setup.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
#!/bin/bash
#
#This script downloads the needed tools to download the Open-BFG-Tech set of applications run this script as root.
#
#
#========================================================================
#
# declarations
#
#========================================================================
GAME_TECH_VERSION="Open-BFG-Tech SDK"
DEFAULT_PACKAGES="gcc git wget cmake unzip yasm tar"
#========================================================================
#
# install packages
#
#========================================================================
echo "=============================================="
echo " Please Make Sure You are running as root "
echo " "
echo " This can be done using sudo or su - "
echo "=============================================="
echo "Which type of distro do you run?"
echo " 1) rpm based with yum installed"
echo " 2) deb based with apt-get installed"
echo " 3) neither of these"
read -p "Default to 3 : " response
if [ "${response}" = '1' ]; then
echo "Installing "${DEFAULT_PACKAGES}" please wait..."
yum install ${DEFAULT_PACKAGES}
echo
echo "Initial Setup Script Has Finished."
exit 2
else
if [ "${response}" = '2' ]; then
echo "Installing "${DEFAULT_PACKAGES}" please wait..."
apt-get install ${DEFAULT_PACKAGES}
echo
echo "Initial Setup Script Has Finished."
exit 2
else
echo "Unsupported Linux Distro, please manually install "${DEFAULT_PACKAGES}
fi
echo "thank you"
echo "Initial Setup Script Has Finished."
echo "You now have the needed packages installed to continue using the "${GAME_TECH_VERSION}