2024-09-20 00:01:22 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function installSW -V dir
|
2024-10-06 19:25:34 +00:00
|
|
|
set -l repo linux-surface
|
2024-09-20 00:01:22 +00:00
|
|
|
set -l file "/etc/pacman.conf"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
if ! grep "^\[$repo\]\$" $file
|
|
|
|
begin
|
|
|
|
printf %s\n \
|
|
|
|
"" \
|
|
|
|
"[$repo]" \
|
|
|
|
"Server = https://pkg.surfacelinux.com/arch/"
|
2024-10-06 19:25:34 +00:00
|
|
|
end | sudo tee -a $file >/dev/null
|
2024-09-20 00:01:22 +00:00
|
|
|
|
|
|
|
sudo pacinst
|
|
|
|
|
|
|
|
sudo pacinst \
|
|
|
|
intel-ucode \
|
|
|
|
linux-surface \
|
|
|
|
linux-surface-headers \
|
|
|
|
linux-surface-secureboot-mok \
|
|
|
|
iptsd \
|
|
|
|
linux-firmware-marvell
|
|
|
|
|
|
|
|
yes | runYay libwacom-surface
|
|
|
|
yayinst libcamera-git
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function configureSW -V dir
|
2024-10-13 13:35:24 +00:00
|
|
|
fish "$dir/../../Software/grub/main.fish" configure
|
2024-09-20 00:01:22 +00:00
|
|
|
end
|
|
|
|
|
2024-10-13 23:55:19 +00:00
|
|
|
runInstaller --force $argv
|
2024-09-20 00:01:22 +00:00
|
|
|
end
|