-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·51 lines (40 loc) · 1.21 KB
/
Copy pathupdate.sh
File metadata and controls
executable file
·51 lines (40 loc) · 1.21 KB
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
#!/bin/bash
# run script with root privileges
cd || exit
# Get Tools and Libraries
apt update
apt upgrade -y
apt install --no-install-recommends build-essential git autoconf automake libtool \
libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev \
libplist-dev libsodium-dev libavutil-dev libavcodec-dev libavformat-dev uuid-dev libgcrypt-dev xxd
# Update NQPTP
if rm -f /lib/systemd/system/nqptp.service; then
echo "Successfully deleted old NQPTP copy"
else
echo "Could not delet old NQPTP copy" >&2
fi
rm -rf nqptp
git clone https://github.com/mikebrady/nqptp.git
cd nqptp || exit
autoreconf -fi
./configure --with-systemd-startup
make
make install
systemctl restart nqptp
# Build & Install Shairport Sync
cd || exit
rm -rf shairport-sync
git clone https://github.com/mikebrady/shairport-sync.git
cd shairport-sync || exit
autoreconf -fi
./configure --sysconfdir=/etc --with-alsa \
--with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2
make
make install
if systemctl enable shairport-sync; then
echo "Shairport Sync successfully updated and running"
else
echo "Failed to updated Shairport Sync " >&2
fi
echo "Rebooting"
reboot