summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/container/start8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/container/start b/lib/container/start
index 6d2c7a9..e2d94b5 100755
--- a/lib/container/start
+++ b/lib/container/start
@@ -316,8 +316,8 @@ then
cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF
allow-hotplug ${INTERFACE}
iface ${INTERFACE} inet manual
- pre-up ifconfig ${INTERFACE} up
- post-down ifconfig ${INTERFACE} down
+ pre-up ip link set ${INTERFACE} up
+ post-down ip link set ${INTERFACE} down
EOF
done
@@ -347,10 +347,10 @@ EOF
cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF
allow-hotplug ${INTERFACE}
iface ${INTERFACE} inet manual
- pre-up ifconfig ${INTERFACE} up
+ pre-up ip link set ${INTERFACE} up
post-up brctl addif ${BRIDGE} ${INTERFACE}
pre-down brctl delif ${BRIDGE} ${INTERFACE}
- post-down ifconfig ${INTERFACE} down
+ post-down ip link set ${INTERFACE} down
EOF
else