blob: a22768855af3faa66bdbf3677e129909a7c3f606 (
plain) (
tree)
|
|
#!/bin/bash
set -xe
tail --follow=name --retry /var/log/syslog | grep "default route via" | while read l
do
iface=`cut -d\ -f6 <<<"$l" | sed s/://`
ip -6 route | grep $iface | while read line
do
ip route del $line
done
done
|