Comment 2 for bug 1277058

Revision history for this message
Alejandro Panza (alejandrofpanza) wrote :

# amd-xconfig
# from line 148

is_laptop () {
    # We only support laptops by default,
    # you can override this check by creating
    # the /etc/force-pxpress file
    if [ -f "$force_pxpress" ]; then
        echo "yes "
    else
        if [ -n "`ls -A /sys/class/power_supply/`" ] && \
           [ -d "/proc/acpi/button/lid" ]; then
            echo "yes"
        else
            echo "no"
        fi
    fi
}

We found that somehow the string "yes" from echo command starts a yes process. There must be an interpolation of the output of this function ( is_laptop ). Editing the file and changing "yes " to something else (not a command) seems to fix the problem.
Thanks for hearing our comments !

Nahuel Sciaratta
Alejandro Panza