forked from AsahiLinux/asahi-audio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac-audio.sh
executable file
·39 lines (30 loc) · 998 Bytes
/
mac-audio.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
#!/bin/bash
# SPDX-License-Identifier: MIT
# (C) 2022 James Calligeros
set -e
if [[ $(whoami) != "root" ]]; then
echo "This script must be run as root. Please type your root"
echo "password if prompted to do so."
sudo ./mac-audio.sh
else
echo "We will now set up your Apple Silicon Mac's integrated audio."
echo
read -sp "Press Enter to continue..."
echo
if [[ -d /usr/share/pipewire/devices/apple/ ]]; then
echo "Installation directory already exists."
else
echo "Install directory does not exist. Creating..."
mkdir -p /usr/share/pipewire/devices/apple/
fi
if [[ ! -d /etc/pipewire/ ]]; then
echo "Creating default Pipewire configuration directory..."
mkdir -p /etc/pipewire/pipewire.conf.d/
else
if [[ ! -d /etc/pipewire/pipewire.conf.d/ ]]; then
echo "Creating pipewire.conf.d..."
mkdir -p /etc/pipewire/pipewire.conf.d/
fi
fi
python3 install.py
fi