From 52a8b79f987164167bb459576c19560bee54eb54 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 2 Aug 2018 13:53:20 -0700 Subject: [PATCH] Trim Packages (#96) Closes #81 * Trim Packages Kernel support for USB has been moved to modules libpcap and tcpdump have been moved to modules libnetsnmp and snmpd have been moved to modules IPv6 has been removed from the kernel IPv6 support has been removed from busybox network utils as well. (no more funny DNS responses in nslookup!) * Remove ping6 and traceroute6 They are no longer needed * Changed patch name and number and updated series file --- configs/common.config | 25 ++++++++++++++++++------- patches/710-no-ping6-traceroute6.patch | 22 ++++++++++++++++++++++ patches/series | 1 + 3 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 patches/710-no-ping6-traceroute6.patch diff --git a/configs/common.config b/configs/common.config index 005fdee8..7a833751 100644 --- a/configs/common.config +++ b/configs/common.config @@ -1,21 +1,32 @@ +CONFIG_KERNEL_IPV6=n +CONFIG_KERNEL_IPV6_MULTIPLE_TABLES=n +CONFIG_KERNEL_IPV6_SUBTREES=n +CONFIG_KERNEL_IPV6_MROUTE=n +CONFIG_IPV6=n CONFIG_ATH_USER_REGD=y CONFIG_PACKAGE_bridge=y CONFIG_PACKAGE_busybox=y +CONFIG_BUSYBOX_CUSTOM=y +CONFIG_BUSYBOX_DEFAULT_FEATURE_IPV6=n +CONFIG_BUSYBOX_CONFIG_FEATURE_IPV6=n CONFIG_BUSYBOX_CONFIG_TELNETD=y CONFIG_PACKAGE_dnsmasq=y CONFIG_PACKAGE_dropbear=y CONFIG_PACKAGE_iperf=m CONFIG_PACKAGE_iptables=y CONFIG_PACKAGE_kmod-ipt-nathelper=y -CONFIG_PACKAGE_kmod-usb-core=y -CONFIG_PACKAGE_kmod-usb-uhci=y -CONFIG_PACKAGE_kmod-usb2=y +CONFIG_PACKAGE_kmod-usb-core=m +CONFIG_PACKAGE_kmod-usb-ehci=m +CONFIG_PACKAGE_kmod-usb-ohci=m +CONFIG_PACKAGE_kmod-usb-uhci=m +CONFIG_PACKAGE_kmod-usb2=m CONFIG_PACKAGE_libgcc=y CONFIG_PACKAGE_mtd=y CONFIG_PACKAGE_ppp=n CONFIG_PACKAGE_ppp-mod-pppoe=n CONFIG_PACKAGE_odhcp6c=n CONFIG_PACKAGE_odhcpd=n +CONFIG_PACKAGE_odhcpd-ipv6only=n CONFIG_PACKAGE_kmod-ppp=n CONFIG_PACKAGE_kmod-pppoe=n CONFIG_PACKAGE_kmod-pppox=n @@ -33,8 +44,8 @@ CONFIG_PACKAGE_perlbase-essential=y CONFIG_PACKAGE_perlbase-xsloader=y CONFIG_PACKAGE_perlbase-file=y CONFIG_PACKAGE_perlbase-perlio=y -CONFIG_PACKAGE_libpcap=y -CONFIG_PACKAGE_tcpdump-mini=y +CONFIG_PACKAGE_libpcap=m +CONFIG_PACKAGE_tcpdump-mini=m CONFIG_PACKAGE_ntpclient=y CONFIG_PACKAGE_xinetd=y CONFIG_PACKAGE_kmod-ipv6=n @@ -48,8 +59,8 @@ CONFIG_PACKAGE_libiwinfo=y CONFIG_PACKAGE_socat=y CONFIG_PACKAGE_ntpclient=y CONFIG_PACKAGE_curl=y -CONFIG_PACKAGE_libnetsnmp=y -CONFIG_PACKAGE_snmpd=y +CONFIG_PACKAGE_libnetsnmp=m +CONFIG_PACKAGE_snmpd=m CONFIG_PACKAGE_lua=y CONFIG_PACKAGE_liblua=y CONFIG_PACKAGE_libuci-lua=y diff --git a/patches/710-no-ping6-traceroute6.patch b/patches/710-no-ping6-traceroute6.patch new file mode 100644 index 00000000..c6776948 --- /dev/null +++ b/patches/710-no-ping6-traceroute6.patch @@ -0,0 +1,22 @@ +Index: openwrt/package/utils/busybox/Config-defaults.in +=================================================================== +--- openwrt.orig/package/utils/busybox/Config-defaults.in ++++ openwrt/package/utils/busybox/Config-defaults.in +@@ -2376,7 +2376,7 @@ config BUSYBOX_DEFAULT_PING + default y + config BUSYBOX_DEFAULT_PING6 + bool +- default y ++ default n + config BUSYBOX_DEFAULT_FEATURE_FANCY_PING + bool + default y +@@ -2448,7 +2448,7 @@ config BUSYBOX_DEFAULT_TRACEROUTE + default y + config BUSYBOX_DEFAULT_TRACEROUTE6 + bool +- default y ++ default n + config BUSYBOX_DEFAULT_FEATURE_TRACEROUTE_VERBOSE + bool + default y diff --git a/patches/series b/patches/series index a9500cea..8dfecd7f 100644 --- a/patches/series +++ b/patches/series @@ -11,3 +11,4 @@ 707-enable-board-name.patch 708-define-aredn-vlans.patch 709-iperf-fw-restart.patch +710-no-ping6-traceroute6.patch