forked from Hexxeh/rpi-update
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Raspiboot.sh
55 lines (50 loc) · 1.19 KB
/
Raspiboot.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
#!/bin/bash
echo '----------------------------------------------------------------'
echo '- RASPIBOOT -'
echo '- Essential tools for Raspberry Pi -'
echo '- A fork from rpi-update by Hexxeh -'
echo '----------------------------------------------------------------'
function begin {
echo 'What do you want to do ?'
echo '1- Update my firmware'
echo '2- Update my packages'
echo '3- Overclock & System Settings'
echo '4- System Info'
echo '5- Install Synaptic'
echo '6- Install Kodi on Raspbian'
echo '7- Reboot system'
choix="Notset"
read choix
if [ $choix == "1" ]
then firmware
elif [ $choix == "2" ]
then packages
elif [ $choix == "3" ]
then overclock
elif [ $choix == "4" ]
then cpuinfo
elif [ $choix == "5" ]
then sudo apt-get install synaptic
elif [ $choix == "6" ]
then sudo apt-get install kodi
elif [ $choix == "7" ]
then sudo reboot
else
echo 'Error !' && begin
fi
}
function firmware {
chmod a+x rpi-update
./rpi-update
}
function packages {
sudo apt-get update
sudo apt-get dist-upgrade
}
function overclock {
sudo raspi-config
}
function cpuinfo {
cat /proc/cpuinfo
}
begin