From 4f66e2150f37e785cb3cfdbf1defc6c1006d1a7c Mon Sep 17 00:00:00 2001 From: iamromulan <50184035+iamromulan@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:44:48 -0400 Subject: [PATCH] Force the user to reboot after setting TTL --- RM55x_rcPCIe_toolkit.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RM55x_rcPCIe_toolkit.sh b/RM55x_rcPCIe_toolkit.sh index a1b5a59..9bec80f 100644 --- a/RM55x_rcPCIe_toolkit.sh +++ b/RM55x_rcPCIe_toolkit.sh @@ -186,7 +186,8 @@ ttl_setup() { fi echo -e "\e[32mType 0 to disable TTL\e[0m" - echo "Would you like to edit the TTL settings? (yes to continue, exit to quit):" + echo -e "\e[32mWould you like to edit the TTL settings? (yes to continue, exit to quit):\e[0m" + echo -e "\e[31mWarning: If you type Yes you will be forced to reboot if you change the value \e[0m" read -r response if [ "$response" = "exit" ]; then @@ -205,12 +206,11 @@ ttl_setup() { echo "Setting TTL to $ttl_value..." echo "iptables -t mangle -A POSTROUTING -o rmnet+ -j TTL --ttl-set $ttl_value" > "$ttl_file" echo "ip6tables -t mangle -A POSTROUTING -o rmnet+ -j HL --hl-set $ttl_value" >> "$ttl_file" + reboot fi fi fi done - /bin/ash "$lan_utils_script" - /etc/init.d/firewall reload }