Comment 3 for bug 1219998

Revision history for this message
Manfred Hampl (m-hampl) wrote :

It seems to me that the post installation script aborts with status 1 if fglrx is not installed.

There is in postinst:
            # Make sure we use the discrete card
            has_aticonfig="$(which aticonfig)"
            if [ X"$has_aticonfig" != X ]; then
                aticonfig --px-dgpu || true
            fi

At least on my system if I try it in a shell
has_aticonfig="$(which aticonfig)"
gives an exit code of 1 (I do not have an aticonfig executable anywhere in my path).

Wouldn't it be reasonable to change it to

            has_aticonfig="$(which aticonfig || true)"

to cater for systems where aticonfig is not present (due to fglrx not being installed)?