mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update
This commit is contained in:
parent
204407545c
commit
bafa41e4f9
2 changed files with 2 additions and 1 deletions
|
@ -198,6 +198,7 @@ ${sysctl_path} -p
|
||||||
# 重启配置
|
# 重启配置
|
||||||
service networking restart
|
service networking restart
|
||||||
systemctl restart networking.service
|
systemctl restart networking.service
|
||||||
|
ifreload -ad
|
||||||
# 已加载网络,删除对应缓存文件
|
# 已加载网络,删除对应缓存文件
|
||||||
if [ -f "/etc/network/interfaces.new" ];then
|
if [ -f "/etc/network/interfaces.new" ];then
|
||||||
chattr -i /etc/network/interfaces.new
|
chattr -i /etc/network/interfaces.new
|
||||||
|
|
|
@ -166,7 +166,7 @@ do
|
||||||
output=$(ip addr)
|
output=$(ip addr)
|
||||||
matches=$(echo "$output" | grep "inet6.*global dynamic")
|
matches=$(echo "$output" | grep "inet6.*global dynamic")
|
||||||
if [ -n "$matches" ]; then
|
if [ -n "$matches" ]; then
|
||||||
# SLAAC动态分配,做无IPV6的处理
|
# SLAAC动态分配,暂不做IPV6的处理
|
||||||
sed -i "/iface $interface inet6 auto/d" $1
|
sed -i "/iface $interface inet6 auto/d" $1
|
||||||
echo "$interface" > "/root/iface_auto.txt"
|
echo "$interface" > "/root/iface_auto.txt"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue