Bug 142092

Summary: xdmsc init script completely broken
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jon Nelson <jnelson-suse>
Component: X11 ApplicationsAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jon Nelson 2006-01-09 16:36:11 UTC
The xdmsc init script that ships with SUSE 10 (boxed copy at least), is completely unprepared for xorg instead of xfree. Specifically, the get_version() function looks for:

        case "$l" in
            XFree86\ Version*) break ;;
        esac 

instead of:

        case "$l" in
            X\ Window\ System\ Version*) break ;;
        esac 

and:

    case ${3%%.*} in
        [0-9]) echo ${3%%.*} ;;
        *)     echo 0        ;;
    esac

needs to use:

    case ${5%%.*} in
        [0-9]) echo ${5%%.*} ;;
        *)     echo 0        ;;
    esac


Thanks!
Comment 1 Dr. Werner Fink 2006-01-09 16:52:59 UTC
Thanks for spotting, is already fixed for next release of SuSE Linux.