#!/usr/bin/bash # # tests/ip.sh — pass-through wrapper for the ip command. # # Usage: # tests/ip.sh # # Examples: # tests/ip.sh route get 192.168.3.252 # tests/ip.sh -br addr # tests/ip.sh link show # set -uo pipefail if [ "$#" -eq 0 ]; then echo "Usage: $0 " >&2 echo " e.g. $0 route get 192.168.3.252" >&2 echo " $0 -br addr" >&2 exit 2 fi exec /sbin/ip "$@"