Use kenv -q to extract dumpdev rather than kenv, in order to avoid

spamming the console in the event that a loader tunable 'dumpdev'
isn't defined, which is not a relevant failure to report.

MFC after:	1 week
This commit is contained in:
Robert Watson 2005-09-13 19:07:02 +00:00
parent c3ee3aa526
commit 218fe3f1b0

View File

@ -33,7 +33,7 @@ dumpon_start()
[Nn][Oo] | '')
;;
[Aa][Uu][Tt][Oo])
dev=$(/bin/kenv dumpdev)
dev=$(/bin/kenv -q dumpdev)
if [ -n "${dev}" ] ; then
dumpon_try "${dev}"
return $?