uncloud-mravi/archive/uncloud_etcd_based/uncloud/hack/hackcloud/ifup.sh

7 lines
123 B
Bash
Executable file

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