Package kernel-modules-nvidia-ovz-rhel: Scripts

Post install

# switch nvidia driver and libraries
if [ -z "$DURING_INSTALL" ]; then
    if [ "`uname -r`" == "2.6.18-ovz-rhel-alt13.M51.46" ] ; then
	X11PRESETDRV=`which x11presetdrv 2>/dev/null`
	if [ -n "$X11PRESETDRV" ]; then
	    $X11PRESETDRV ||:
	else
	    echo "Warning! x11presetdrv program not found!" >&2
	fi
	X11SETUPDRV=`which x11setupdrv 2>/dev/null`
	if [ -n "$X11SETUPDRV" ]; then
	    $X11SETUPDRV ||:
	fi
    fi
fi
[ -n "$DURING_INSTALL" ] || 
/sbin/depmod -a -F /boot/System.map-2.6.18-ovz-rhel-alt13.M51.46 2.6.18-ovz-rhel-alt13.M51.46
Post uninstall

if [ -z "$DURING_INSTALL" ]; then
    if [ "`uname -r`" == "2.6.18-ovz-rhel-alt13.M51.46" ] ; then
	X11PRESETDRV=`which x11presetdrv 2>/dev/null`
	if [ -n "$X11PRESETDRV" ]; then
	    $X11PRESETDRV ||:
	else
	    echo "Warning! x11presetdrv program not found!" >&2
	fi
	X11SETUPDRV=`which x11setupdrv 2>/dev/null`
	if [ -n "$X11SETUPDRV" ]; then
	    $X11SETUPDRV ||:
	fi
    fi
fi
[ -n "$DURING_INSTALL" ] || 
/sbin/depmod -a -F /boot/System.map-2.6.18-ovz-rhel-alt13.M51.46 2.6.18-ovz-rhel-alt13.M51.46