From 8b1746de3266dccf31aaa6f97f5948a137c92324 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 13 Mar 2001 05:36:32 +0000 Subject: [PATCH] better message for the case when /dev/ppp doesn't exist --- pppd/sys-linux.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index b1c58aa..f1b4842 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -1928,8 +1928,15 @@ int ppp_available(void) close(fd); return 1; } - if (kernel_version >= KVERSION(2,3,13)) + if (kernel_version >= KVERSION(2,3,13)) { + if (errno == ENOENT) + no_ppp_msg = + "pppd is unable to open the /dev/ppp device.\n" + "You need to create the /dev/ppp device node by\n" + "executing the following command as root:\n" + " mknod /dev/ppp c 108 0\n"; return 0; + } /* * Open a socket for doing the ioctl operations. -- 2.39.2