PortValhalla/scripts/Arch/Software/xone/main.fish

23 lines
592 B
Fish
Raw Normal View History

2024-09-20 00:01:22 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
set -l contextRoot (mktemp -d)
set -l repo https://github.com/manuth/xone.git
yayinst cabextract
2024-10-06 19:25:34 +00:00
if not dkms status --all | grep xone >/dev/null
2024-09-20 00:01:22 +00:00
git clone "$repo" "$contextRoot"
sudo env -C "$contextRoot" ./install.sh --release
sudo chmod -R a+rx /usr/src/xone*
yes "" | sudo xone-get-firmware.sh
end
2024-10-06 19:25:34 +00:00
rm -rf "$contextRoot" >/dev/null
2024-09-20 00:01:22 +00:00
end
runInstaller $argv
end