This commit is contained in:
Owen Qwen
2026-08-31 17:21:07 -05:00
parent 5f99d9b137
commit ef61d8dd07
6 changed files with 259 additions and 21 deletions
+3
View File
@@ -82,5 +82,8 @@ STATUS=$("${BIN_DIR}/umn" status)
echo "${STATUS}"
INTERFACE=$("${BIN_DIR}/umn" interface status)
echo "${INTERFACE}"
ADDRESS=$("${BIN_DIR}/umn" address)
STORED_ADDRESS=$(tr -d '[:space:]' < "${STATE_DIR}/address")
[[ "${ADDRESS}" == "${STORED_ADDRESS}" ]] || { echo "identity address health check failed: umn address does not match ${STATE_DIR}/address." >&2; exit 1; }
[[ "${STATUS}" == *"DNS listening"* ]] || { echo "DNS health check failed (port 53535 may be busy)." >&2; exit 1; }
[[ "${INTERFACE}" == *"helper: connected"* ]] || { echo "native interface health check failed." >&2; exit 1; }
+1 -1
View File
@@ -26,4 +26,4 @@ sudo launchctl bootout system "${HELPER_PLIST}" >/dev/null 2>&1 || true
if [[ -e "${RESOLVER_PATH}" ]] && cmp -s "${TEMP_RESOLVER}" "${RESOLVER_PATH}"; then sudo unlink "${RESOLVER_PATH}"; fi
echo "Binaries, LaunchAgent, LaunchDaemon, routes, interface, and managed resolver removed."
echo "Identity and configuration were preserved in ~/Library/Application Support/UltraMesh."
echo "All persistent state, including identity and address, was preserved in ~/Library/Application Support/UltraMesh."