#!/bin/sh

# Delete routes with metric > 0
ip route ls | while read line; do
	set $line
	if [ "metric" = "$6" ] && [ $7 -gt 0 ]; then
		ip route del $line
	fi
done
