#!/sbin/runscript

description="Setup optimus"

start()
{
	einfo "Setting up optimums."

        if [ "$( cat /etc/X11/xorg.conf 2>&1 | grep -o prime-nvidia-config)" != "" ] ; then
           modprobe -C /dev/null nvidia-drm
           modprobe -C /dev/null nvidia-modeset
           modprobe -C /dev/null nvidia
        fi

  	eend 0
}

