1 2 3 4 5 6 7 8 9
#!/bin/sh -e INTERFACE="$1" NEW_STATE="$2" test -n "$INTERFACE" test -n "$NEW_STATE" exec ip link set "$INTERFACE" "$NEW_STATE"