43 lines
1 KiB
Bash
Executable file
43 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
|
|
|
. "../../Software/yay/install.sh";
|
|
|
|
curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
|
|
| sudo pacman-key --add -;
|
|
|
|
sudo pacman-key --finger 56C464BAAC421453;
|
|
sudo pacman-key --lsign-key 56C464BAAC421453;
|
|
|
|
pacmanConf="/etc/pacman.conf";
|
|
|
|
if ! grep "^\[linux-surface\]$" "$pacmanConf"
|
|
then
|
|
{
|
|
echo "";
|
|
echo "[linux-surface]";
|
|
echo "Server = https://pkg.surfacelinux.com/arch/";
|
|
} | sudo tee -a "$pacmanConf" > /dev/null;
|
|
fi;
|
|
|
|
sudo pacman --noconfirm -Syu;
|
|
|
|
sudo pacman --noconfirm -Sy \
|
|
intel-ucode \
|
|
linux-surface \
|
|
linux-surface-headers \
|
|
iptsd \
|
|
intel-ucode \
|
|
linux-firmware-marvell;
|
|
|
|
sudo systemctl enable bluetooth --now;
|
|
sudo grub-mkconfig -o /boot/grub/grub.cfg;
|
|
yes | yay --answerclean=None --answerdiff=None -Syu libwacom-surface;
|
|
|
|
. "./camera.sh";
|
|
|
|
sudo sed -i \
|
|
-e "s/^\(; \)\?\(.* = \)speex-float-[[:digit:]]\+$/\2speex-float-5/" \
|
|
/etc/pulse/daemon.conf;
|
|
|
|
popd > /dev/null;
|