The problem for me is that I don’t want photon to shutdown.
Specifically, people will logout of the computer without leaving photon.
And the next time a person log in, the ph script is executed, and the driver
is started again.
So The solution I though of is just by adding the following to the ph script
right after inputtrap block is executed.
if test -z $PHINSTANCE
devi-elo smartset fd -d/dev/ser1
fi
This starts the driver only if there is no instance of ph existed before.
When you enter photon, phinstance is established. When you login afterward
in the GUI, this thing prevents driver from being executed again.
If you go into commandline and want to go back to photon, this thing will
start devi-elo driver as well.
You also can check if /dev/photon exists
“jimmy tsai” <jtsai@vortek.com> wrote in message
news:9il3fl$k9u$1@inn.qnx.com…
The problem for me is that I don’t want photon to shutdown.
Specifically, people will logout of the computer without leaving photon.
And the next time a person log in, the ph script is executed, and the
driver
is started again.
So The solution I though of is just by adding the following to the ph
script
right after inputtrap block is executed.
if test -z $PHINSTANCE
devi-elo smartset fd -d/dev/ser1
fi
This starts the driver only if there is no instance of ph existed before.
When you enter photon, phinstance is established. When you login afterward
in the GUI, this thing prevents driver from being executed again.
If you go into commandline and want to go back to photon, this thing will
start devi-elo driver as well.