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.

Thanks,

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-ck3
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)

Versions of packages hal depends on:
ii  adduser                      3.67        Add and remove users and groups
ii  dbus-1                       0.23.4-3    simple interprocess messaging syst
ii  dbus-glib-1                  0.23.4-3    simple interprocess messaging syst
ii  libc6                        2.3.5-3     GNU C Library: Shared libraries an
ii  libcap1                      1:1.10-14   support for getting/setting POSIX.
ii  libexpat1                    1.95.8-3    XML parsing C library - runtime li
ii  libglib2.0-0                 2.8.0-1     The GLib library of C routines
ii  libhal-storage0              0.4.8-6     Hardware Abstraction Layer - share
ii  libhal0                      0.4.8-6     Hardware Abstraction Layer - share
ii  libpopt0                     1.7-5       lib for parsing cmdline parameters
ii  pciutils                     1:2.1.11-15 Linux PCI Utilities
ii  udev                         0.066-1     /dev/ management daemon
ii  usbutils                     0.71-5      USB console utilities

hal recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDA0no823633cP2P8RAmoMAJ9K81kfTWAWG5gVVNmIfuTMQqdr5gCff9MV
YsDECBpFH83g6Akl/hVvPWs=
=V+GA
-----END PGP SIGNATURE-----


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

Reply via email to