Subject: how to test for SLIP devices

From: [email-masked] (Giuseppe Vacanti)
Date: Sun, 18 Aug 1996 19:24:52 +0200 (MET DST)

Hi,

I would like the diald preinst script to check if the kernel has
SLIP devices (either compiled in or in as a module).

I think it should be enough to check for the string `slip' in /proc/modules
and the string `sl?:' in /proc/net/dev. Is this correct?

Thanks,

	-giuseppe

PS: please cc me in your replies as I'm temporarily off the devel list.

---

From: [email-masked] (Bernd Eckenfels)
Date: Mon, 19 Aug 1996 13:26:49 +0200 (MET DST)

Hi,

> and the string `sl?:' in /proc/net/dev. Is this correct?

sl?: will only be in /proc/net/devif you have any serial line in xSLIBy mode
(alsattach or dip running). If there ius no serial/pty line in linemode,
there is no entry in /proc/net/dev. There is no real good way to check for
slip availability other than stting up a pty and tryaing an slattach (or
soemthing similiar).

Greetings
Bernd