2020-11-14 10:34:16 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
INTERFACE=$1
|
|
|
|
|
|
|
|
if [[ "$INTERFACE" != "${source}" ]]
|
|
|
|
then
|
|
|
|
echo "wide-dhcp6c is not configured to work on $INTERFACE"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-11-14 10:57:01 +00:00
|
|
|
if systemctl is-active wide-dhcpv6-client;
|
|
|
|
then
|
2021-01-09 11:51:37 +00:00
|
|
|
systemctl stop wide-dhcpv6-client
|
2023-11-17 15:56:07 +00:00
|
|
|
sleep 60
|
2023-09-23 07:23:41 +00:00
|
|
|
systemctl start wide-dhcpv6-client
|
2020-11-14 10:57:01 +00:00
|
|
|
else
|
2023-11-17 15:56:07 +00:00
|
|
|
sleep 60
|
2020-11-14 10:57:01 +00:00
|
|
|
systemctl start wide-dhcpv6-client
|
|
|
|
fi
|