Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:branches:X11:Drivers:Video
nvidia-gfxG05
Xwrapper
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Xwrapper of Package nvidia-gfxG05
#!/bin/bash # force kernel module reload after driver update; kernel module and # X driver version need to match (Novell Bugzilla #219456) if [ "$UID" == "0" ]; then # rmmod nvidia_uvm first mods=$(lsmod | grep -v -E "nvidia_agp|nvidiafb" | grep -o -E "^(nvidia_uvm|nvidia|nvidia_modeset|fglrx)" | sort -u | tac) if [ $? -eq 0 ]; then # new since release 367; sitting on top of nvidia_modeset; needs to be unloaded first /sbin/rmmod -v nvidia_drm || true for m in ${mods}; do # bail out, if an existing module cannot be unloaded # this can happen if a second Xsession starts /sbin/rmmod -v $m || exit 1 done fi fi XSERVER=REPLACE_ME if [ "${XSERVER}" == "$(basename $0)" ]; then # broken entry in /etc/sysconfig/displaymanager:DISPLAYMANAGER_XSERVER # use a sane default instead XSERVER=Xorg fi sed -i s/DISPLAYMANAGER_XSERVER=.*/DISPLAYMANAGER_XSERVER=${XSERVER}/g \ /etc/sysconfig/displaymanager if [ -f /sbin/conf.d/SuSEconfig.xdm ]; then SuSEconfig --module xdm else sh /etc/X11/xdm/SuSEconfig.xdm fi if [ -x /var/lib/X11/X ]; then exec /var/lib/X11/X ${1+"$@"} else exec /var/X11R6/bin/X ${1+"$@"} fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor