volume unmounting/ejecting broken on linux

Richard Hughes hughsient at gmail.com
Wed May 17 05:26:09 PDT 2006


On Wed, 2006-05-17 at 14:05 +0200, Danny Kukawka wrote:
> On Wednesday 17 May 2006 13:45, Danny Kukawka wrote:
> > I think because of the attached patch (untested atm). IMO the path to the
> > OS specific scripts id wrong.
> 
> Forget the patch ... I oversaw the Makefile of the OS dir. ;-)

I think you are on the right lines tho, As if you follow the execution
of hal-system-lcd-set-brightness it could never work:

$0-$HALD_UNAME_S is actually
"/usr/lib/hal/scripts/hal-system-lcd-set-brightness-linux"
rather than:
hal-system-lcd-set-brightness-linux

so this fails:
if [ -n "$HALD_UNAME_S" -a -x ./$0-$HALD_UNAME_S ]; then

Replacing:
if [ -n "$HALD_UNAME_S" -a -x ./$0-$HALD_UNAME_S ]; then
    exec ./$0-$HALD_UNAME_S $@
else
    echo "No back-end for your operating system" >&2
    exit 1
fi

with

if [ -n "$HALD_UNAME_S" -a -x $0-$HALD_UNAME_S ]; then
    exec $0-$HALD_UNAME_S $@
else
    echo "No back-end for your operating system" >&2
    exit 1
fi

makes the scripts work for me. Is this sane?

Richard.




More information about the hal mailing list