mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-08-10 08:07:40 +02:00
better test-bed scripts
This commit is contained in:
@ -8,10 +8,13 @@ echo -e ">>> Setting up $(hostname) | id: $(id) | $(python --version) \nip: $(ip
|
||||
function with_set_x() {
|
||||
set -x
|
||||
"$@"
|
||||
{ ec=$?; set +x;return $ec; } 2>/dev/null
|
||||
{
|
||||
ec=$?
|
||||
set +x
|
||||
return $ec
|
||||
} 2>/dev/null
|
||||
}
|
||||
|
||||
|
||||
iface="$(ip route | awk '/default/ { print $5 }')"
|
||||
default_gw="$(ip route | awk '/default/ { print $3 }')"
|
||||
for addr in ${IP_ADDRESSES//,/ }; do
|
||||
|
Reference in New Issue
Block a user