https://bugzilla.novell.com/show_bug.cgi?id=219456 ------- Comment #27 from sndirsch@novell.com 2007-01-04 10:37 MST -------
The install procedure can test if it can unload the driver instead and rebootif this fails. IMHO this is overkill and I'm afraid there's no way to trigger a reboot, i.e. to tell YaST to do so, in a safe way during a package installation.
How about if we create a script to replace the /var/X11R6/bin link when a driver is installed: Put the following into /var/X11R6/bin/X.install: #/bin/bash mods=`lsmod | grep -o -E "nvidia|fglrx"`; test $? -eq 0 ] && for i in ${mods}; do rmmod $i; done; test -f /var/X11R6/bin/X._install && mv /var/X11R6/bin/X._install /var/X11R6/bin/X; exec /var/X11R6/bin/X ${1+"$@"} This would be possible, but ...
The installation procedure can do someting like:
test -f /var/X11R6/bin/X._install \ || { mv /var/X11R6/bin/X /var/X11R6/bin/X._install; \ ln -sf /var/X11R6/bin/X.install /var/X11R6/bin/X' }; What do you mean with installation procedure?
- YaST? - RPM %post install section? At least SaX2 and (/etc/X11/xdm/)SuSEconfig.xdm then will needs to be adjusted as well (otherwise the wrapper script would be overwritten). My first idea has also been a wrapper script, but I abandonned it immediately when thinking about all the places where changes have to be made. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.