-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
37 lines (32 loc) · 954 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
#!/bin/bash -e
echo "Simple Pi Audio Receiver installation....."
read -p "Hostname [$(hostname)]: " HOSTNAME
sudo raspi-config nonint do_hostname ${HOSTNAME:-$(hostname)}
CURRENT_PRETTY_HOSTNAME=$(hostnamectl status --pretty)
read -p "Pretty hostname [${CURRENT_PRETTY_HOSTNAME:-Raspberry Pi}]: " PRETTY_HOSTNAME
sudo hostnamectl set-hostname --pretty "${PRETTY_HOSTNAME:-${CURRENT_PRETTY_HOSTNAME:-Raspberry Pi}}"
echo ""
read -p "[Do you want to update raspberry? [y/N]] " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo ""
echo "Updating packages"
sudo apt update
sudo apt upgrade -y
fi
echo "**********************"
echo "Installing components"
echo "**********************"
sudo bash enable-hifiberry.sh
sudo bash install-shairport.sh
sudo bash install-spotify.sh
sudo bash install-upnp.sh
sudo bash install-openvpn.sh
echo ""
read -p "Reboot needed - are you sure? [y/N] " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo reboot
fi