From 8c980456380c11c4988ac1e43884f61dd27d0f25 Mon Sep 17 00:00:00 2001 From: Anya Lin Date: Mon, 15 Jan 2024 22:11:59 +0800 Subject: [PATCH] chore(init.d): Create ruleset dir during initial boot in custom routing mode --- root/etc/homeproxy/ruleset/.placehold | 0 root/etc/init.d/homeproxy | 1 + 2 files changed, 1 insertion(+) delete mode 100644 root/etc/homeproxy/ruleset/.placehold diff --git a/root/etc/homeproxy/ruleset/.placehold b/root/etc/homeproxy/ruleset/.placehold deleted file mode 100644 index e69de29b..00000000 diff --git a/root/etc/init.d/homeproxy b/root/etc/init.d/homeproxy index 7b13b826..ecdb4cba 100755 --- a/root/etc/init.d/homeproxy +++ b/root/etc/init.d/homeproxy @@ -103,6 +103,7 @@ start_service() { no-resolv server=127.0.0.1#$dns_port EOF + [ -d "$HP_DIR/ruleset" ] || mkdir -p "$HP_DIR/ruleset" ;; esac