Re: Conditionally require restart
On Thu, Oct 11, 2012 at 11:41 PM, Andrew Keller <andrew@kellerfarm.com> 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre