Jan Damborsky wrote:
>>> cmd/auto-install/svc/auto-installer
>>> -----------------------------------
>>> 75 - I think we could take advantage of devprop(1M) instead
>>> of parsing prtconf(1M) output.
>>
>> I actually can't get devprop(1M) to give me any output
>> on sparc or x86, I'll play with it some more since it
>> seems much cleaner.
>
> It seems to work correctly for me on x86 - e.g.
>
> $ prtconf -vp | grep boot
>    bios-boot-device:  '80'
>
> $ devprop bios-boot-device
> 80
>
> But it doesn't seem to work on Sparc:
>
> # prtconf -vp | grep bootargs
>        bootargs:  00
> # devprop bootargs
>
> #
>
> It seems like a bug, since man page doesn't mention that
> devprop(1M) is supposed to work only on some platforms.

I have just found appropriate PSARC - devprop(1M) is supposed to
work on all platforms - excerpt from

http://arc.opensolaris.org/caselog/PSARC/2007/155/20070315_david.edmondson

...

7 /sbin/devprop
###############

: Usage: devprop [-n device-path] [-vq] [-{b|i|l|s}] [property [...]]

devprop provides easy access to properties from the device tree for
administrators and scripting language developers (most commonly shell
scripts).

devprop will be delivered on all Solaris platforms.

...


It is likely it was not thoroughly tested on Sparc, since it seems
Xen is its only consumer for now.

Jan


Reply via email to