Bugfix
This commit is contained in:
parent
a59b876c84
commit
f5ed5353ec
2 changed files with 21 additions and 6 deletions
if-pre-up.d
|
@ -11,6 +11,9 @@ then
|
|||
if [ ! -f /etc/netns/$IF_NETNS/network/interfaces ]; then
|
||||
touch /etc/netns/$IF_NETNS/network/interfaces
|
||||
fi
|
||||
if [ ! -f /etc/netns/$IF_NETNS/resolv.conf ]; then
|
||||
touch /etc/netns/$IF_NETNS/resolv.conf
|
||||
fi
|
||||
mkdir -p /run/network.${IF_NETNS}
|
||||
rm -rf /run/network.${IF_NETNS}/*
|
||||
ip netns add ${IF_NETNS}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue