]> err.no Git - systemd/commit
udevadm: info - honor --export and --export-prefix for property query
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 9 Dec 2010 20:10:30 +0000 (21:10 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 10 Dec 2010 00:18:14 +0000 (01:18 +0100)
commit88163971b93260474bf2dd3195dc4e72098584ba
treed3cf94ea2c3e351739bcb2c3301dd4df7c8c8244
parent8ba13ec1cd00b86001b4344aec11ae0a64395f7b
udevadm: info - honor --export and --export-prefix for property query

The output will always be quoted:
  $ udevadm info --export --export-prefix=MY_ --query=property --name=sda
  MY_UDEV_LOG='3'
  MY_DEVPATH='/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda'
  MY_MAJOR='259'
  MY_MINOR='0'
  MY_DEVNAME='sda'
  MY_DEVTYPE='disk'
  MY_SUBSYSTEM='block'
udev/udevadm-info.c