On Wed, Aug 17, 2005 at 11:30:00AM -0300, Javier Kohen wrote:
> Package: hal
> Version: 0.4.8-6
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I have a backup script that obtains the path where one partition of a
> particularn USB drive is mounted, but after a very recent update (from -4 or
> -5, and udev 0.065, I believe) its UDI changed from something like:
> /org/freedesktop/Hal/devices/block_a7f3c4b2-c4b2-33ad-d134-d4d3cab3092c to
> something like: /org/freedesktop/Hal/devices/block_8_0, thus making it really
> hard for a shell script to uniquely identify the partition.
> 
> My script was:
> MOUNTPOINT_KEY=volume.mount_point
> 
> MOUNTPOINT=`hal-get-property --udi $DRIVE_UDI --key $MOUNTPOINT_KEY`
> # If disk is mounted, backup.
> if [ -n "$MOUNTPOINT" ]; then
>     rsync -az --delete /home/ $MOUNTPOINT/home
> fi
> 
> And I liked it because it was very simple.

Could you check that this problem still exists with the latest versions ?

  Sjoerd
-- 
Things equal to nothing else are equal to each other.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to