Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core > by-pkgid > e2247d70492fe52dd371f32a4131e081 > scriptlet

kernel-modules-nvidia-ovz-wks-173.14.12-alt1.132626.1.i586.rpm

POSTIN

/bin/sh
# switch nvidia driver and libraries
if [ -z "$DURING_INSTALL" ]; then
    if [ "`uname -r`" == "2.6.18-ovz-wks-alt1" ] ; 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 ||:
	    /sbin/ldconfig
	else
	    echo "Warning! x11setupdrv program not found!" >&2
	fi
    else
	[ -n "$DURING_INSTALL" ] || 
/sbin/depmod -a -F /boot/System.map-2.6.18-ovz-wks-alt1 2.6.18-ovz-wks-alt1 

    fi
fi

POSTUN

/bin/sh
if [ -z "$DURING_INSTALL" ]; then
    if [ "`uname -r`" == "2.6.18-ovz-wks-alt1" ] ; 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 ||:
	    /sbin/postun_ldconfig
	else
	    echo "Warning! x11setupdrv program not found!" >&2
	fi
    else
	[ -n "$DURING_INSTALL" ] || 
/sbin/depmod -a -F /boot/System.map-2.6.18-ovz-wks-alt1 2.6.18-ovz-wks-alt1 

    fi
fi