Re: Conditionally require restart
Re: Conditionally require restart
- Subject: Re: Conditionally require restart
- From: Stephane Sudre <email@hidden>
- Date: Fri, 12 Oct 2012 09:14:31 +0200
On Thu, Oct 11, 2012 at 11:41 PM, Andrew Keller <email@hidden> wrote:
> On Oct 11, 2012, at 2:19 AM, Stephane Sudre wrote:
>
[...]
>
> Is there an easy way to choose whether to use JavaScript or shell? I need to do approximately this:
>
> kextstat | perl -e 'while (<>) { exit 1 if /com.test.example \([1-2].*\)/; }'
>
> That is, if a kernel extension called com.test.example is loaded, and if it's version 1.x or 2.x, require a restart. Else, do not require a restart.
This would require a JavaScript script invoking a shell script. And to
embed the shell script in the distribution. This is possible for Mac
OS X 10.6 and later if you use a flat distribution (can be signed).
10.5 and later if you use a bundle distribution (can not be signed).
Regarding the easiness part, it depends on the format or tool you use
or if you already know how to embed a script in a flat distribution
from the command line.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden