diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-19 17:03:24 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-19 17:03:24 +0000 |
commit | 5cae7371a78b99af668d4e1f43c985a8b707aa33 (patch) | |
tree | a44347c0cfedce98ee1f16906d3391c4d86b2d48 /package/ppp/patches/400-simplify_kernel_checks.patch | |
parent | 7c90f3b2b498531a267b0e85c4f634f65d76eba8 (diff) |
[package] ppp: annotate most patches with description and S-o-b
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32463 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/patches/400-simplify_kernel_checks.patch')
-rw-r--r-- | package/ppp/patches/400-simplify_kernel_checks.patch | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/package/ppp/patches/400-simplify_kernel_checks.patch b/package/ppp/patches/400-simplify_kernel_checks.patch index 6ddf86a1b..ec82576cb 100644 --- a/package/ppp/patches/400-simplify_kernel_checks.patch +++ b/package/ppp/patches/400-simplify_kernel_checks.patch @@ -1,3 +1,13 @@ +pppd: Remove runtime kernel checks + +On embedded system distributions the required kernel features for pppd are +more or less guaranteed to be present, so there is not much point in +performing runtime checks, it just increases the binary size. + +This patch removes the runtime kernel feature checks. + +Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> + --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -203,7 +203,7 @@ static int driver_is_old = 0; @@ -88,11 +98,11 @@ return 0; --- a/pppd/plugins/pppoatm/pppoatm.c +++ b/pppd/plugins/pppoatm/pppoatm.c -@@ -171,14 +171,6 @@ static void disconnect_pppoatm(void) +@@ -170,14 +170,6 @@ static void disconnect_pppoatm(void) void plugin_init(void) { --#ifdef linux +-#if defined(__linux__) - extern int new_style_driver; /* From sys-linux.c */ - if (!ppp_available() && !new_style_driver) - fatal("Kernel doesn't support ppp_generic - " @@ -126,9 +136,9 @@ add_options(Options); info("RP-PPPoE plugin version %s compiled against pppd %s", ---- a/pppd/plugins/pppol2tp/pppol2tp.c 2010-11-15 12:12:43.000000000 +0000 -+++ b/pppd/plugins/pppol2tp/pppol2tp.c 2012-04-24 15:53:58.806260309 +0100 -@@ -488,12 +488,7 @@ static void pppol2tp_check_options(void) +--- a/pppd/plugins/pppol2tp/pppol2tp.c ++++ b/pppd/plugins/pppol2tp/pppol2tp.c +@@ -500,12 +500,7 @@ static void pppol2tp_cleanup(void) void plugin_init(void) { |