File ozerocdoff-udevinfo.diff of Package ozerocdoff

Index: b/hal-serial-hsotype
===================================================================
--- a/hal-serial-hsotype
+++ b/hal-serial-hsotype
@@ -8,12 +8,12 @@
 # activate this script by adding this rule to the hso serial sub device:
 # <append key="info.callouts.preprobe" type="strlist">hal-serial-hsotype</append>
 #
 case "${HALD_ACTION}" in
     preprobe|add)
-	UDEV_PATH=$(udevinfo --name $HAL_PROP_LINUX_DEVICE_FILE --query=path )
-	HSOTYPE=$( cat /sys${UDEV_PATH}/hsotype )
+	UDEV_PATH=$(udevadm info --name $HAL_PROP_LINUX_DEVICE_FILE --query=path )
+	read HSOTYPE < /sys${UDEV_PATH}/hsotype
 	/usr/bin/hal-set-property --udi ${UDI} --key "info.hsotype" --string "${HSOTYPE}"
 	exit 0
 	;;
     *)
 	echo "unsupported HALD_ACTION: ${HALD_ACTION}"