I’ve created a boot floppy for use with an ncurses program I’ve written. I
would prefer after boot to not use the floppy at all. Currently I copy the
contents of the floppy to a ramdisk and set the path to look at the
executables there, but some process is still accessing the floppy when I
start my ncurses program. Without the floppy in the drive I get the error
message “Error opening terminal: qnx.”.
Any ideas on how to avoid this ?
The floppy/program works ok the way it is now, I would just like it better
if there were no floppy access.
Thanks for the hints, I used the prefix a little differently, but it worked
like a charm.
Here is what I did…
In the boot image…
set Fsys to create a ramdisk
In sysinit…
init and mount the ramdisk as /ram
copy contents of floppy to /ram
set the ENV variable to point to /ram/etc/profile.boot
in /ram/etc/profile.boot…
swap the system prefix with the ramdisk
re-mount the floppy as /fd
re-set the ENV variable to point to the default /etc/profile
John <> john_nospam@tolltex.com> > wrote:
start my ncurses program. Without the floppy in the drive I get the
error
message “Error opening terminal: qnx.”.
Probably looking for /etc/termcap or /usr/lib/terminfo/q/qnx. Look
on your floppy to confirm which it is.
Any ideas on how to avoid this ?
Copy the terminal database from your floppy into the ramdisk, and
then set up a “prefix -A” to point the /-rooted path onto ramdisk?