halevt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Halevt-dev] iPod Touch Automounting


From: Marcus Habermehl
Subject: Re: [Halevt-dev] iPod Touch Automounting
Date: Wed, 21 Apr 2010 10:17:59 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100331 Lightning/1.0b2pre Thunderbird/3.0.4

Am 21.04.2010 00:56, schrieb Matthew Bauer:
I've been trying to auto mount my iPod Touch without Gnome dependencies.

/etc/halevt/halevt.xml:

    <halevt:Device match="hal.info.capabilities = {'afc'}">

    <halevt:Insertion exec="mkdir -p /media/ipod; ifuse /media/ipod -o
    sync,allow_other"/>

    </halevt:Device>


    <halevt:Device match="hal.info.capabilities = {'afc'}">

    <halevt:OnInit exec="mkdir -p /media/ipod; ifuse /media/ipod -o
    sync,allow_other"/>

    </halevt:Device>


    <halevt:Device match="hal.info.capabilities = {'afc'}">

    <halevt:Removal exec="fusermount -u /media/ipod; rm -fr /media/ipod"/>

    </halevt:Device>


Once I run halevt with these settings it segfaults.

You have to write afc instead of ('afc'}. And it could be a problem that you have the same Device tag three times. I would write this config like this:

  <halevt:Device match="hal.info.capabilities = afc">
<halevt:OnInit exec="mkdir -p /media/ipod &amp;&amp; ifuse /media/ipod -o sync,allow_other"/> <halevt:Insertion exec="mkdir -p /media/ipod &amp;&amp; ifuse /media/ipod -o sync,allow_other"/> <halevt:Removal exec="fusermount -u /media/ipod &amp;&amp; rmdir /media/ipod"/>
  </halevt:Device>

I have changed your 'rm -fr' to 'rmdir', because rmdir removes empty directories, only.

Greetings
Marcus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]