ansible/files/scripts/restart-broken-ipv6

8 lines
111 B
Text
Raw Normal View History

#!/bin/bash
ping6 -q -c 1 -w 2 2600:: >& /dev/null
if [ $? -ne 0 ];
then
2017-12-26 22:23:37 +00:00
nmcli c up eth0 >& /dev/null
fi