From ef94ce6be93f126d3405891df881e900b11ad68c Mon Sep 17 00:00:00 2001 From: bombermine <84911882+bombermine3@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:06:57 +0300 Subject: [PATCH 1/2] fix: enable tcp_bbr to load automatically after reboot --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index e095b08bb5..5d4f2112b2 100644 --- a/Makefile +++ b/Makefile @@ -264,6 +264,7 @@ enable-bbr: @if [ "$(sysctl net.ipv4.tcp_congestion_control | awk '{print $3}')" != "bbr" ]; then \ echo "BBR is not enabled. Configuring BBR..."; \ sudo modprobe tcp_bbr; \ + echo tcp_bbr | sudo tee -a /etc/modules; \ echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.conf; \ echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.conf; \ sudo sysctl -p; \ From e11dff0d3a2fd280c3188f9cb88766a47df4a684 Mon Sep 17 00:00:00 2001 From: bombermine <84911882+bombermine3@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:14:41 +0300 Subject: [PATCH 2/2] fix: replace bash syntax with sh in configure-v3 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index daa2075f4f..dd246452e0 100644 --- a/Makefile +++ b/Makefile @@ -305,8 +305,8 @@ CONFIG_FILE ?= ${HOME}/.celestia-app/config/config.toml SEND_RECV_RATE ?= 10485760 # 10 MiB configure-v3: - @echo "Using config file at: $(CONFIG_FILE)"; \ - if [[ "$$(uname)" == "Darwin" ]]; then \ + @echo "Using config file at: $(CONFIG_FILE)" + @if [ "$$(uname)" = "Darwin" ]; then \ sed -i '' "s/^recv_rate = .*/recv_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ sed -i '' "s/^send_rate = .*/send_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ sed -i '' "s/ttl-num-blocks = 5/ttl-num-blocks = 12/" $(CONFIG_FILE); \ @@ -324,4 +324,4 @@ debug-version: @echo "GIT_TAG: $(GIT_TAG)" @echo "VERSION: $(VERSION)" .PHONY: debug-version - \ No newline at end of file +