tinit -p - passing options to Photon?

Is there a way to pass options to Photon when
using tinit -p to start photon?

Thanks,
Tom

Thomas Freedy wrote:

Is there a way to pass options to Photon when
using tinit -p to start photon?

It doesn’t look like it. When tinit is given a -p it starts photon by
simply running “ph”.

What exactly are you trying to do?


Ryan J. Allen
ryallen@qnx.com

On Thu, 23 Feb 2006 08:59:39 -0500, Ryan J. Allen wrote:

Thomas Freedy wrote:
Is there a way to pass options to Photon when
using tinit -p to start photon?

It doesn’t look like it. When tinit is given a -p it starts photon by
simply running “ph”.

We usually put a /usr/bin/ph at the end of our /etc/rc.d/rc.local. Then
you’re free to use all possible options …

Ryan J. Allen wrote:

Thomas Freedy wrote:
Is there a way to pass options to Photon when
using tinit -p to start photon?

It doesn’t look like it. When tinit is given a -p it starts photon by
simply running “ph”.

It was pointed out to me that the “ph” script itself will check to see
if the Photon name you’re trying to attach to (/dev/photon by default)
already exists. If the name exists it attaches to the photon session;
if not, it starts Photon.

What this means is that you can run Photon with the options you want
before the ph script and ph will attach to that Photon session. Because
tinit -p is simply running the ph script you just need Photon to run
before tinit is called. Looking at the rc.sysinit file, it looks like
/etc/rc.d/rc.local is run just before tinit, so you could start Photon
with your options in rc.local and still have tinit start ph.


Ryan J. Allen
ryallen@qnx.com