forked from MioR-SL/OvenLTE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cumsoft_OvenLTE_AssetDL.sh
77 lines (72 loc) · 3.44 KB
/
Cumsoft_OvenLTE_AssetDL.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
#!/bin/bash
#################################################################
#################################################################
# #
# `-:-. ,-;"`-:-. ,-;"`-:-. ,-;"`-:-. ,-;" #
# `=`,'=/ `=`,'=/ `=`,'=/ `=`,'=/ #
# y==/ y==/ y==/ y==/ #
# ,=,-<=`. ,=,-<=`. ,=,-<=`. ,=,-<=`. #
# ,-'-' `-=_,-'-' `-=_,-'-' `-=_,-'-' `-=_ #
# #
# ▄▄█▀▀▀▄█ ▄▀█▄ ▄ #
# ▄█▀ ▀ ▄▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄ ▄▄▄ ▄██▄ ▄██▄ #
# ██ ██ ██ ██ ██ ██ ██▄ ▀ ▄█ ▀█▄ ██ ██ #
# ▀█▄ ▄ ██ ██ ██ ██ ██ ▄ ▀█▄▄ ██ ██ ██ ██ #
# ▀▀█▄▄▄▄▀ ▀█▄▄▀█▄ ▄██ ██ ██▄ █▀▄▄█▀ ▀█▄▄█▀ ▄██▄ ▀█▄▀ #
# #
# `-:-. ,-;"`-:-. ,-;"`-:-. ,-;"`-:-. ,-;" #
# `=`,'=/ `=`,'=/ `=`,'=/ `=`,'=/ #
# y==/ y==/ y==/ y==/ #
# ,=,-<=`. ,=,-<=`. ,=,-<=`. ,=,-<=`. #
# ,-'-' `-=_,-'-' `-=_,-'-' `-=_,-'-' `-=_ #
#################################################################
# Copyright © 2022-Present by Cumsoft. All rights reserved. #
# This page was last updated on 20 December 2022. #
# #
# https://cumsoft.wixsite.com/cumsoft #
# https://github.com/cumsoft #
# https://cumsoft.gumroad.com #
#################################################################
#################################################################
# Please dont forget to "chmod +x vcgencmdinstaller.sh"
# Navigate to target file: ./vcgencmdinstaller.sh
# Check if Python 3 is installed
if command -v python3 &>/dev/null; then
echo "Python 3 is already installed."
else
# Check if apt is available
if command -v apt &>/dev/null; then
# Install Python 3 using apt
sudo apt update
sudo apt install python3 -y
# Check if yum is available
elif command -v yum &>/dev/null; then
# Install Python 3 using yum
sudo yum update
sudo yum install python3 -y
else
echo "Error: Could not find package manager (apt or yum) to install Python 3."
exit 1
fi
fi
# Check if pip is installed
if command -v pip3 &>/dev/null; then
echo "pip is already installed."
else
# Check if apt is available
if command -v apt &>/dev/null; then
# Install pip using apt
sudo apt update
sudo apt install python3-pip -y
# Check if yum is available
elif command -v yum &>/dev/null; then
# Install pip using yum
sudo yum update
sudo yum install python3-pip -y
else
echo "Error: Could not find package manager (apt or yum) to install pip."
exit 1
fi
fi
# Use pip to install the vcgencmd package
pip3 install vcgencmd