bundles/wide-dhcp-client: fix some bugs
This commit is contained in:
parent
a61a3816ed
commit
c59a3038a1
3 changed files with 13 additions and 19 deletions
|
@ -3,8 +3,5 @@
|
|||
systemctl stop wide-dhcpv6-client
|
||||
|
||||
% for interface, subnet_id in sorted(targets.items()):
|
||||
for IP in $(ip -6 addr show dev ${interface} | grep inet6 | awk '{print $2}' | grep -vF 'fe80::')
|
||||
do
|
||||
ip -6 addr del $IP dev ${interface}
|
||||
done
|
||||
ip -6 addr flush dev ${interface} scope global
|
||||
% endfor
|
||||
|
|
|
@ -12,7 +12,7 @@ if systemctl is-active wide-dhcpv6-client;
|
|||
then
|
||||
systemctl stop wide-dhcpv6-client
|
||||
sleep 1
|
||||
systemctl sart wide-dhcpv6-client
|
||||
systemctl start wide-dhcpv6-client
|
||||
else
|
||||
systemctl start wide-dhcpv6-client
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue