mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Docker init supports /etc/network/interfaces
* Generate an /etc/network/interfaces * Use busybox also for aux console Ref #460
This commit is contained in:
4 files changed
+78
-14
No files matched your search
Binary file not shown.
@@ -52,12 +52,8 @@ sed -n 's/^ *\(eth[0-9]*\):.*/\1/p' < /proc/net/dev | while read dev; do
|
||||
ip link set dev $dev up
|
||||
done
|
||||
|
||||
if [ -n "$INTERFACES" ]; then
|
||||
mkdir -p /etc/network/if-up.d /etc/network/if-pre-up.d
|
||||
mkdir -p /etc/network/if-down.d /etc/network/if-post-down.d
|
||||
echo -e "$INTERFACES" > /etc/network/interfaces
|
||||
ifup -a -f
|
||||
fi
|
||||
|
||||
ifup -a -f
|
||||
|
||||
# continue normal docker startup
|
||||
PATH="$OLD_PATH"
|
||||
|
||||
Reference in new issue
Block a user