From c1e29c56b8c5322c17af36fb5c754b272ce6eaf5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 3 Jan 2012 19:39:17 +0000 Subject: (ppp_available) kill dead code, thus reducing diff with upstream ppp --- mdk-stage1/ppp/pppd/sys-linux.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'mdk-stage1/ppp') diff --git a/mdk-stage1/ppp/pppd/sys-linux.c b/mdk-stage1/ppp/pppd/sys-linux.c index 3ab92dfba..beb6a3cc0 100644 --- a/mdk-stage1/ppp/pppd/sys-linux.c +++ b/mdk-stage1/ppp/pppd/sys-linux.c @@ -1903,21 +1903,6 @@ int ppp_available(void) kernel_version = KVERSION(osmaj, osmin, ospatch); fd = open("/dev/ppp", O_RDWR); -#if 0 - if (fd < 0 && errno == ENOENT) { - /* try making it and see if that helps. */ - if (mknod("/dev/ppp", S_IFCHR | S_IRUSR | S_IWUSR, - makedev(108, 0)) >= 0) { - fd = open("/dev/ppp", O_RDWR); - if (fd >= 0) - info("Created /dev/ppp device node"); - else - unlink("/dev/ppp"); /* didn't work, undo the mknod */ - } else if (errno == EEXIST) { - fd = open("/dev/ppp", O_RDWR); - } - } -#endif /* 0 */ if (fd >= 0) { new_style_driver = 1; -- cgit v1.2.1