Add scripts for installing drivers
This commit is contained in:
parent
5ad3657b32
commit
c5fbcc0a4b
9 changed files with 184 additions and 0 deletions
28
scripts/Arch/Software/nvidia-dkms/main.fish
Executable file
28
scripts/Arch/Software/nvidia-dkms/main.fish
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/env fish
|
||||
begin
|
||||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
yayinst \
|
||||
nvidia-beta-dkms \
|
||||
lib32-nvidia-utils-beta
|
||||
end
|
||||
|
||||
function configureSW -V dir
|
||||
begin
|
||||
printf %s\n \
|
||||
"MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)" \
|
||||
"" \
|
||||
'for i in "${!HOOKS[@]}"; do' \
|
||||
' if [ "${HOOKS[i]}" = "kms" ]; then' \
|
||||
' unset "HOOKS[i]"' \
|
||||
" fi" \
|
||||
"done"
|
||||
end | sudo tee /etc/mkinitcpio.conf.d/nvidia.conf > /dev/null
|
||||
|
||||
fish "$dir/../../../Common/Software/nvidia-dkms/main.fish" configure
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
22
scripts/Arch/Software/xone/main.fish
Executable file
22
scripts/Arch/Software/xone/main.fish
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/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
|
||||
|
||||
if not dkms status --all | grep xone > /dev/null
|
||||
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
|
||||
|
||||
rm -rf "$contextRoot" > /dev/null
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue