From: Dietmar Maurer Date: Thu, 6 Mar 2014 17:00:53 +0000 (+0100) Subject: ifupdown.sh: correctly use ifup instead of ifconfig X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=4a9b18ad31bb180cceb3e88f8774781dec9069ca ifupdown.sh: correctly use ifup instead of ifconfig --- diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh index c124134..b0ad90d 100755 --- a/debian/ifupdown.sh +++ b/debian/ifupdown.sh @@ -12,7 +12,7 @@ then fi if [ "${MODE}" = "start" ]; then - ifconfig "${IF_VETH_BRIDGETO}" up || exit 1 + test -d "/sys/class/net/${IF_VETH_BRIDGETO}" || ifup "${IF_VETH_BRIDGETO}" || exit 1 ip link add name "${IFACE}" type veth peer name "${IFACE}peer" || exit 1 ip link set "${IFACE}peer" up || exit 1 brctl addif "${IF_VETH_BRIDGETO}" "${IFACE}peer" || exit 1