freebsd-ports/net/findmtu/files/findmtu.in
Martin Wilke d88e45a1a1 - Use $SUB_FILES to dynamically update findmtu script
PR:		143105
Submitted by:	Sevan Janiyan <venture37@geeklan.co.uk>
Approved by:	maintainer
2010-02-13 19:14:33 +00:00

8 lines
264 B
Bash

#!/bin/sh
if netstat -rn -f inet6 | grep -qv $1; then
# Delete host route. As it is not in the routing table,
# we are sure that it is a cloned route and can be deleted
# safely
route delete -inet6 $i > /dev/null 2> /dev/null
fi
%%PREFIX%%/bin/findmtu.real $1