Subject: Re: postinstall exit status
To: Pavel Cahyna <pavel@netbsd.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 09/29/2007 15:18:27
On Sat, 29 Sep 2007, Pavel Cahyna wrote:
> why does postinstall return 0 even if some check or fix failed? I would
> like to check programmatically for the success of a postinstall check. Any
> suggestions how to do it best?

Maybe follow grep(1)'s example:
0 - no problem
1 - a check/fix failed
2 - an error ocurred

http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html


  - Hubert