Bug#451221: report-hw should consider newer versions of DirectFB too
Op 14-11-2007 om 10:46 schreef Geert Stappers:
>
> What will happen when there are several version of directfb installed?
> (example given: "head" has dfb-1.0, developer adds dfb-1.1 for testing)
dfbinfo=$(ls /usr/lib/directfb-*/bin/dfbinfo 2>/dev/null || echo no_dbfinfo)
dfbinfo=$(echo $dfbinfo | tail -n 1 )
if [ -x "$dfbinfo" ]; then
$dfbinfo 2>&1 | addinfo $dfbinfo
fi
That is based on the code snippet from fjp.
Modifications:
* 's/true/echo no_dbfinfo/' because "true" yields an empty string.
* 'tail -n 1' added to get only the lastest version.
Notice: the code is NOT tested.
Cheers
Geert Stappers
Reply to: