From f5751559564a88046ecb374ad8f801db2b0df157 Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:44:55 +0800 Subject: [PATCH] scripts/bindhosts: print operating mode this also reorders find_rwdir placement --- module/bindhosts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/bindhosts.sh b/module/bindhosts.sh index 20562d9..fe8f669 100644 --- a/module/bindhosts.sh +++ b/module/bindhosts.sh @@ -15,9 +15,6 @@ echo "[+] bindhosts v$versionCode" echo "[%] bindhosts.sh" echo "[%] standalone hosts-based-adblocking implementation" -find_rwdir -echo "[ ] rwdir: $rwdir" - [ -f $MODDIR/disable ] && { echo "[*] not running since module has been disabled" string="description=status: disabled ❌ | $(date)" @@ -58,6 +55,9 @@ case $operating_mode in *) true ;; # catch invalid modes esac +find_rwdir +echo "[%] mode: $operating_mode | rwdir: $rwdir " + # check hosts file if writable, if not, warn and exit if [ ! -w $target_hostsfile ] ; then # no fucking way