All pastes #341591 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-05 19:10 UTC
rendered paste body
jaym@shinigami:~/Desktop> sh find-ipod.sh
udi = '/org/freedesktop/Hal/devices/storage_model_iPod'
  block.device = '/dev/sda'  (string)
  block.is_volume = false  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 0  (0x0)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (str ing)
  info.addons = { 'hald-addon-storage' } (string list)
  info.capabilities = { 'storage', 'block', 'portable_audio_player' } (string li st)
  info.category = 'portable_audio_player'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_5ac_1260_000A2700187075 DD_if0_scsi_host_scsi_device_lun0'  (string)
  info.product = 'iPod'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.vendor = 'Apple'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sda'  (string)
  linux.sysfs_path_device = '/sys/block/sda'  (string)
  portable_audio_player.access_method = 'storage'  (string)
  portable_audio_player.output_formats = { 'audio/mpeg', 'audio/aac' } (string l ist)
  portable_audio_player.storage_device = '/org/freedesktop/Hal/devices/storage_m odel_iPod'  (string)
  portable_audio_player.type = 'ipod'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = true  (bool)
  storage.model = 'iPod'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_5ac_1260_00 0A2700187075DD_if0'  (string)
  storage.policy.should_mount = true  (bool)
  storage.removable = true  (bool)
  storage.requires_eject = true  (bool)
  storage.vendor = 'Apple'  (string)

udi = '/org/freedesktop/Hal/devices/volume_part1_size_98574336'
  block.device = '/dev/sda1'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 1  (0x1)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (str ing)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.product = 'Volume'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part1_size_98574336'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sda/sda1'  (string)
  linux.sysfs_path_device = '/sys/block/sda/sda1'  (string)
  volume.block_size = 2048  (0x800)  (int)
  volume.fstype = ''  (string)
  volume.fsusage = ''  (string)
  volume.fsversion = ''  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.mount_point = ''  (string)
  volume.num_blocks = 192528  (0x2f010)  (int)
  volume.partition.msdos_part_table_type = 0  (0x0)  (int)
  volume.partition.number = 1  (0x1)  (int)
  volume.size = 98574336  (0x5e02000)  (uint64)
  volume.uuid = ''  (string)

udi = '/org/freedesktop/Hal/devices/volume_part2_size_3948134400'
  block.device = '/dev/sda2'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 2  (0x2)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (str ing)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.product = 'Volume (via_raid_member)'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part2_size_3948134400'  (strin g)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sda/sda2'  (string)
  linux.sysfs_path_device = '/sys/block/sda/sda2'  (string)
  volume.block_size = 2048  (0x800)  (int)
  volume.fstype = 'via_raid_member'  (string)
  volume.fsusage = 'raid'  (string)
  volume.fsversion = '0'  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.mount_point = ''  (string)
  volume.num_blocks = 7711200  (0x75a9e0)  (int)
  volume.partition.msdos_part_table_type = 11  (0xb)  (int)
  volume.partition.number = 2  (0x2)  (int)
  volume.size = 3948134400  (0xeb53c000)  (uint64)
  volume.uuid = ''  (string)

----------
jaym@shinigami:~/Desktop> clear

jaym@shinigami:~/Desktop> sh find-ipod.sh
udi = '/org/freedesktop/Hal/devices/storage_model_iPod'
  block.device = '/dev/sda'  (string)
  block.is_volume = false  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 0  (0x0)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.addons = { 'hald-addon-storage' } (string list)
  info.capabilities = { 'storage', 'block', 'portable_audio_player' } (string list)
  info.category = 'portable_audio_player'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_5ac_1260_000A2700187075DD_if0_scsi_host_scsi_device_lun0'  (string)
  info.product = 'iPod'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.vendor = 'Apple'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sda'  (string)
  linux.sysfs_path_device = '/sys/block/sda'  (string)
  portable_audio_player.access_method = 'storage'  (string)
  portable_audio_player.output_formats = { 'audio/mpeg', 'audio/aac' } (string list)
  portable_audio_player.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  portable_audio_player.type = 'ipod'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = true  (bool)
  storage.model = 'iPod'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_5ac_1260_000A2700187075DD_if0'  (string)
  storage.policy.should_mount = true  (bool)
  storage.removable = true  (bool)
  storage.requires_eject = true  (bool)
  storage.vendor = 'Apple'  (string)

udi = '/org/freedesktop/Hal/devices/volume_part1_size_98574336'
  block.device = '/dev/sda1'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 1  (0x1)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.product = 'Volume'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part1_size_98574336'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sda/sda1'  (string)
  linux.sysfs_path_device = '/sys/block/sda/sda1'  (string)
  volume.block_size = 2048  (0x800)  (int)
  volume.fstype = ''  (string)
  volume.fsusage = ''  (string)
  volume.fsversion = ''  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.mount_point = ''  (string)
  volume.num_blocks = 192528  (0x2f010)  (int)
  volume.partition.msdos_part_table_type = 0  (0x0)  (int)
  volume.partition.number = 1  (0x1)  (int)
  volume.size = 98574336  (0x5e02000)  (uint64)
  volume.uuid = ''  (string)

udi = '/org/freedesktop/Hal/devices/volume_part2_size_3948134400'
  block.device = '/dev/sda2'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 2  (0x2)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_iPod'  (string)
  info.product = 'Volume (via_raid_member)'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part2_size_3948134400'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sda/sda2'  (string)
  linux.sysfs_path_device = '/sys/block/sda/sda2'  (string)
  volume.block_size = 2048  (0x800)  (int)
  volume.fstype = 'via_raid_member'  (string)
  volume.fsusage = 'raid'  (string)
  volume.fsversion = '0'  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.mount_point = ''  (string)
  volume.num_blocks = 7711200  (0x75a9e0)  (int)
  volume.partition.msdos_part_table_type = 11  (0xb)  (int)
  volume.partition.number = 2  (0x2)  (int)
  volume.size = 3948134400  (0xeb53c000)  (uint64)
  volume.uuid = ''  (string)

----------
jaym@shinigami:~/Desktop>