Honestly I'm not sure what else we can do in the nvidia package other than checking the existence of the kernel module.
In the postinst script of the nvidia package we check the exit status of the script that we use to build the module:
case "$1" in configure) /usr/lib/dkms/common.postinst $NAME $CVERSION /usr/share/$PACKAGE_NAME $ARCH $2 exit $? ;;
Honestly I'm not sure what else we can do in the nvidia package other than checking the existence of the kernel module.
In the postinst script of the nvidia package we check the exit status of the script that we use to build the module:
case "$1" in lib/dkms/ common. postinst $NAME $CVERSION /usr/share/ $PACKAGE_ NAME $ARCH $2
configure)
/usr/
exit $?
;;