#!/bin/sh echo $@ >> foo dev=$1; shift # bridge is setup from outside ip link set dev "$dev" master ${bridge}