bundles/{radvd,wide-dhcp6c}: improve handling of non-properly terminated ip-down scripts

This commit is contained in:
Franzi 2020-11-14 11:57:01 +01:00
parent 644eb37b82
commit a14580944b
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 14 additions and 2 deletions

View file

@ -8,4 +8,9 @@ then
exit 0
fi
systemctl start wide-dhcpv6-client
if systemctl is-active wide-dhcpv6-client;
then
systemctl restart wide-dhcpv6-client
else
systemctl start wide-dhcpv6-client
fi