-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
55 lines (30 loc) · 822 Bytes
/
install.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
clear
sleep 1
echo ""
cat $HOME/cpufreq-check/logo
echo ""
echo "----------------------------------------------------------------------"
echo ""
sleep 1
if [[ $(which sudo | grep -c sudo) = "1" ]]
then
sudo apt-get install -y sudo
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y cpufrequtils
sudo apt-get dist-upgrade -y
sudo cp $HOME/cpufreq-check/cpufreq-check /usr/sbin/cpufreq-check
sudo chmod +x /usr/sbin/cpufreq-check
mv $HOME/cpufreq-check $HOME/.cpufreq-check
else
apt-get update
apt-get upgrade -y
apt-get install -y cpufrequtils
apt-get dist-upgrade -y
cp $HOME/cpufreq-check/cpufreq-check $HOME/../usr/bin/cpufreq-check
chmod +x $HOME/../usr/bin/cpufreq-check
mv $HOME/cpufreq-check $HOME/.cpufreq-check
fi
sleep 5
clear