File: routef

package info (click to toggle)
iproute 20100519-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,636 kB
  • ctags: 5,283
  • sloc: ansic: 36,665; sh: 2,282; makefile: 447; cpp: 341; yacc: 339; lex: 145; perl: 101
file content (9 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#! /bin/sh

if [ -z "$*" ] ; then
	exec ip -4 ro flush  scope global  type unicast
else
	echo "Usage: routef"
	echo
	echo "This script will flush the IPv4 routing table"
fi