From 3bc41d62be3a38f3b4977a01188f3fd375603066 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 13 Mar 2022 17:37:38 +0300 Subject: [PATCH] install_easy: flow offload linux check --- common/installer.sh | 2 +- install_easy.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/installer.sh b/common/installer.sh index 22236c6..6febc4b 100644 --- a/common/installer.sh +++ b/common/installer.sh @@ -81,7 +81,7 @@ check_system() OPENWRT_FW3= local info - local UNAME=$(uname) + UNAME=$(uname) if [ "$UNAME" = "Linux" ]; then # do not use 'exe' because it requires root local INIT=$(sed 's/\x0/\n/g' /proc/1/cmdline | head -n 1) diff --git a/install_easy.sh b/install_easy.sh index b79ba29..ba45e84 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -333,7 +333,7 @@ ask_config_tmpdir() nft_flow_offload() { - [ "$FWTYPE" = nftables -a "$MODE" != "tpws-socks" ] && [ "$FLOWOFFLOAD" = software -o "$FLOWOFFLOAD" = hardware ] + [ "$UNAME" = Linux -a "$FWTYPE" = nftables -a "$MODE" != "tpws-socks" ] && [ "$FLOWOFFLOAD" = software -o "$FLOWOFFLOAD" = hardware ] } ask_iface() @@ -387,8 +387,6 @@ select_mode_iface() if [ "$SYSTEM" = "openwrt" ] || [ "$MODE" = "filter" ]; then return; fi - echo - case "$MODE" in tpws-socks) echo "select LAN interface to allow socks access from your LAN. select NONE for localhost only."