bundlewrap/bundles/wide-dhcp6c/files/ip-up

20 lines
345 B
Text
Raw Normal View History

#!/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
2023-11-17 15:56:07 +00:00
sleep 60
systemctl start wide-dhcpv6-client
else
2023-11-17 15:56:07 +00:00
sleep 60
systemctl start wide-dhcpv6-client
fi