On Mon, 9 Jun 1997, Petteri Virtanen wrote:
> Yes, it looks at /proc/meminfo, since 7.00c05 I think. I'm running xfbbd
> in chrooted environment and had exactly the same symptoms, because I don't
> have the /proc filesystem available to xfbbd. (I have to manually copy the
> required files to /fbbroot/proc/...)
>
> Btw, which file in /proc does xfbb check to determine whether net/rom support
> is included in the kernel?
I am not sure that it does. An application can easily find out whether a
protocol is available by trying to open a socket for that protocol, in C
it would be:
s = socket(AF_NETROM, SOCK_SEQPACKET, 0);
if s were -1 then the protocol probably isn't valid, the value of errno
would indicate the actual error. Doing a quick check through the xfbbd
binary (xd700d) here shows that /proc/net/nr_nodes is also accessed, but
that is probably to allow alias to callsign mapping and for the
validation of the remote node callsign, and not for checking for the
availablity of NET/ROM per se.
> 73, Petteri
>
> --
> Petteri Virtanen <owcul@relay.tunkki.fi>
> ax.25: ufl.epgburzyo@ncsbusiness.net
Jonathan
-- +----------------------------------+---------------------------------------+ | e-mail: terhi.victor@logonet.com | Telephone: +44 (0) 973 695261 | +----------------------------------+---------------------------------------+ | Author of Linux kernel AX.25, NET/ROM and Rose. | +--------------------------------------------------------------------------+