PortValhalla/scripts/Arch/Config/nvidia-dkms/install.sh

15 lines
285 B
Bash
Executable file

#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
sudo sed -i \
-e "/^HOOKS=(.* kms /{" \
-e "h; s/^/#/; p;" \
-e "g; s/ kms / /" \
-e "}" \
/etc/mkinitcpio.conf;
sudo mkinitcpio -P;
. "../../../Common/Config/nvidia-dkms/install.sh";
popd > /dev/null;