1 2 3 4 5 6 7
#!/bin/sh if [ -f "/proc/net/bonding/$1" ]; then cat "/proc/net/bonding/$1"; else echo "Interface $1 does not exist!"; fi