Hello,
Am Freitag, 29. September 2006 21:59 schrieb Carl-Daniel Hailfinger:
[...]
> <ivm:Match name="hal.block.device" value="/dev/hdc">
> <ivm:Condition name="EjectPressed"
> exec="/usr/bin/halmount -u'$hal.block.device$'" />
> <ivm:Condition name="EjectPressed"
> exec="/usr/bin/eject '$hal.block.device$'" />
> </ivm:Match>
>
> You now have to press eject twice (because there is no way to
> tell ivman to wait for return of the previous command), [...]
Two ideas to avoid that you have to press the button twice, both
untested ;-)
a) (would be the best solution)
<ivm:Match name="hal.block.device" value="/dev/hdc">
<ivm:Condition name="EjectPressed" exec="/usr/bin/halmount -u
'$hal.block.device$' ; /usr/bin/eject '$hal.block.device$'" />
</ivm:Match>
b) (if a) doesn't work)
put the two commands in a small script:
/usr/bin/halmount -u "$1"
/usr/bin/eject "$1"
and let ivman execute this script.
Regards,
Christian Boltz
--
hm. I've lost a machine.. literally _lost_. it responds to ping, it
works completely, I just can't figure out where in my apartment it is.
[http://bash.org/?5273]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]