From a2f9d7cb28b53b8d9b84781d4eb72d4e2879dc02 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 30 May 2022 09:49:11 +0300 Subject: [PATCH] install_easy: copy files/fake for openwrt --- install_easy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install_easy.sh b/install_easy.sh index 38c2429..869ddd1 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -449,8 +449,9 @@ copy_openwrt() local BINDIR="$1/binaries/$ARCH" [ -d "$2" ] || mkdir -p "$2" - - mkdir "$2/tpws" "$2/nfq" "$2/ip2net" "$2/mdig" "$2/binaries" "$2/binaries/$ARCH" "$2/init.d" "$2/tmp" + + mkdir "$2/tpws" "$2/nfq" "$2/ip2net" "$2/mdig" "$2/binaries" "$2/binaries/$ARCH" "$2/init.d" "$2/tmp" "$2/files" + cp -R "$1/files/fake" "$2/files" cp -R "$1/common" "$1/ipset" "$2" cp -R "$1/init.d/openwrt" "$2/init.d" cp "$1/config" "$1/install_easy.sh" "$1/uninstall_easy.sh" "$1/install_bin.sh" "$1/blockcheck.sh" "$2"