18 lines
330 B
Bash
18 lines
330 B
Bash
#!/bin/bash
|
|
|
|
INTERFACE=$1
|
|
|
|
if [[ "$INTERFACE" != "${source}" ]]
|
|
then
|
|
echo "wide-dhcp6c is not configured to work on $INTERFACE"
|
|
exit 0
|
|
fi
|
|
|
|
if systemctl is-active wide-dhcpv6-client;
|
|
then
|
|
systemctl stop wide-dhcpv6-client
|
|
sleep 1
|
|
systemctl sart wide-dhcpv6-client
|
|
else
|
|
systemctl start wide-dhcpv6-client
|
|
fi
|