X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=f1b48423ef83c537367820db55cc1ffb96b2a841;hb=8b1746de3266dccf31aaa6f97f5948a137c92324;hp=b1c58aa007436629f0c42bc5d7126019487c7dd3;hpb=392a4f54cb25e48eed9cf5443febeeba7eaf7cbc;p=ppp.git 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.