install_easy : offer gnu gzip as its times faster busybox version

This commit is contained in:
bolvan 2019-05-10 18:14:15 +03:00
parent aec302b3b6
commit cd059aefea
2 changed files with 20 additions and 1 deletions

View File

@ -422,6 +422,7 @@ openwrt/LEDE
opkg update opkg update
opkg install iptables-mod-extra iptables-mod-nfqueue iptables-mod-filter iptables-mod-ipopt ipset curl opkg install iptables-mod-extra iptables-mod-nfqueue iptables-mod-filter iptables-mod-ipopt ipset curl
(для новых LEDE и openwrt) opkg install kmod-ipt-raw (для новых LEDE и openwrt) opkg install kmod-ipt-raw
(опционально) opkg install gzip
(опционально) opkg install grep (опционально) opkg install grep
(опционально) opkg install bind-tools (опционально) opkg install bind-tools
@ -429,6 +430,7 @@ opkg install iptables-mod-extra iptables-mod-nfqueue iptables-mod-filter iptable
bind-tools содержит dig (ресолвер dns от bind). он достаточно емкий по занимаемому месту, но mdig его bind-tools содержит dig (ресолвер dns от bind). он достаточно емкий по занимаемому месту, но mdig его
полностью заменяет. при наличии mdig bind-tools не нужны. полностью заменяет. при наличии mdig bind-tools не нужны.
gzip от busybox в разы медленней полноценного варианта. gzip используется скриптами получения листов.
grep от busybox катастрофически медленный с опцией -f. она применяется в get_combined.sh. если вы не собираетесь grep от busybox катастрофически медленный с опцией -f. она применяется в get_combined.sh. если вы не собираетесь
пользоваться этим скриптом, gnu grep можно не устанавливать пользоваться этим скриптом, gnu grep можно не устанавливать
iptables-mod-nfqueue можно выкинуть, если не будем пользоваться nfqws iptables-mod-nfqueue можно выкинуть, если не будем пользоваться nfqws

View File

@ -448,6 +448,20 @@ check_prerequisites_openwrt()
} }
fi fi
[ -x "/usr/bin/gzip" ] || {
echo your system uses default busybox gzip. its several times slower than gnu gzip.
echo ip/host list scripts will run much faster with gnu gzip
echo installer can install gnu gzip but it requires about 100 Kb space
echo -n "do you want to install gnu gzip (Y/N) ? "
read A
if [ "$A" = "Y" ] || [ "$A" = "y" ]; then
[ "$UPD" = "0" ] && {
opkg update
UPD=1
}
opkg install gzip
fi
}
[ -x "/usr/bin/grep" ] || { [ -x "/usr/bin/grep" ] || {
echo your system uses default busybox grep. its damn infinite slow with -f option echo your system uses default busybox grep. its damn infinite slow with -f option
echo get_combined.sh will be severely impacted echo get_combined.sh will be severely impacted
@ -455,7 +469,10 @@ check_prerequisites_openwrt()
echo -n "do you want to install gnu grep (Y/N) ? " echo -n "do you want to install gnu grep (Y/N) ? "
read A read A
if [ "$A" = "Y" ] || [ "$A" = "y" ]; then if [ "$A" = "Y" ] || [ "$A" = "y" ]; then
[ "$UPD" = "0" ] && opkg update [ "$UPD" = "0" ] && {
opkg update
UPD=1
}
opkg install grep opkg install grep
fi fi
} }