From 3273d79e4a7916496d09cb1f71c16b26d4efc37f Mon Sep 17 00:00:00 2001 From: Root THC Date: Sun, 15 Mar 2026 14:34:16 +0000 Subject: [PATCH] GHOSTIP_IS_UP better name --- tools/ghostip.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ghostip.sh b/tools/ghostip.sh index d3e74bc..cc5d636 100755 --- a/tools/ghostip.sh +++ b/tools/ghostip.sh @@ -437,7 +437,7 @@ ghost_down() { eval "$c" &>/dev/null done } - unset GHOST_PS_BAK GHOST_UNDO_CMD _GHOST_ORIG_CGROUP _GHOST_IS_UP _GHOST_CGROUP + unset GHOST_PS_BAK GHOST_UNDO_CMD _GHOST_ORIG_CGROUP _GHOSTIP_IS_UP _GHOST_CGROUP } ghostip_destruct() { @@ -483,7 +483,7 @@ ghost_up() { local is_error local unset_extra - [ -n "$_GHOST_IS_UP" ] && ghost_down + [ -n "$_GHOSTIP_IS_UP" ] && ghost_down ghost_up2 [ -n "$is_error" ] && { @@ -492,7 +492,7 @@ ghost_up() { err "Oops. This did not work..." return } - _GHOST_IS_UP=1 + _GHOSTIP_IS_UP=1 # We cant exit yet if LAN or WAN was a success. if [ "${#GHOST_UNDO_CMD[@]}" -le 0 ]; then @@ -545,5 +545,5 @@ ghost_up [ -n "$sourced" ] && { unset -f ghost_init ghost_up ghost_up2 ghost_single ghost_lan ghost_print ghost_find_gw ghost_find_other ghost_find_single ghost_find_local iptnat is_arp_bad unset ghost_all_dev ghost_all_dev_ip gw_dev gw_dev_ip single_dev single_dev_ip ipt_args _GHOST_NAME - # GHOST_PS_BAK, GHOST_UNDO_CMD, _GHOST_ORIG_CGROUP, _GHOST_IS_UP, and _GHOST_CGROUP remain for ghost_down() and hackshell.sh + # GHOST_PS_BAK, GHOST_UNDO_CMD, _GHOST_ORIG_CGROUP, _GHOSTIP_IS_UP, and _GHOST_CGROUP remain for ghost_down() and hackshell.sh }