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

23 lines
588 B
Fish
Raw Permalink Normal View History

2024-09-20 00:01:22 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../lib/software.fish"
2024-09-20 00:01:22 +00:00
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