install_easy: flow offload linux check

This commit is contained in:
bol-van 2022-03-13 17:37:38 +03:00
parent 9aab32a35a
commit 3bc41d62be
2 changed files with 2 additions and 4 deletions

View File

@ -81,7 +81,7 @@ check_system()
OPENWRT_FW3= OPENWRT_FW3=
local info local info
local UNAME=$(uname) UNAME=$(uname)
if [ "$UNAME" = "Linux" ]; then if [ "$UNAME" = "Linux" ]; then
# do not use 'exe' because it requires root # do not use 'exe' because it requires root
local INIT=$(sed 's/\x0/\n/g' /proc/1/cmdline | head -n 1) local INIT=$(sed 's/\x0/\n/g' /proc/1/cmdline | head -n 1)

View File

@ -333,7 +333,7 @@ ask_config_tmpdir()
nft_flow_offload() 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() ask_iface()
@ -387,8 +387,6 @@ select_mode_iface()
if [ "$SYSTEM" = "openwrt" ] || [ "$MODE" = "filter" ]; then return; fi if [ "$SYSTEM" = "openwrt" ] || [ "$MODE" = "filter" ]; then return; fi
echo
case "$MODE" in case "$MODE" in
tpws-socks) tpws-socks)
echo "select LAN interface to allow socks access from your LAN. select NONE for localhost only." echo "select LAN interface to allow socks access from your LAN. select NONE for localhost only."