From ae7badd573dd58fd37297e5497c81368e91b20eb Mon Sep 17 00:00:00 2001 From: Attila Lendvai Date: Wed, 22 Mar 2023 09:41:20 +0100 Subject: [PATCH] support removing packages using a SAVE_SPACE_PACKAGES variable adapted from the patch by @luizoti in PR #21. --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index f1f5f0a..c0ac27f 100755 --- a/build.sh +++ b/build.sh @@ -52,6 +52,13 @@ PREINSTALLED_PACKAGES+=" kmod-usb-storage-extras kmod-mmc" PREINSTALLED_PACKAGES+=" ppp ppp-mod-pppoe ppp-mod-pppol2tp ppp-mod-pptp kmod-ppp kmod-pppoe" PREINSTALLED_PACKAGES+=" luci" +# you exclude packages with this to shrink the image for +# routers with smaller flash storage. +# SAVE_SPACE_PACKAGES=" -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -ath10k" +SAVE_SPACE_PACKAGES="" + +PREINSTALLED_PACKAGES+=${SAVE_SPACE_PACKAGES} + mkdir -pv ${BUILD} rm -rf $IMGTEMPDIR