ip: remove routef script
This script is old and limited to IPv4. Using ip route command directly is better option. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
parent
adddf30cd8
commit
1eaebad2c5
|
|
@ -18,7 +18,7 @@ RTMONOBJ=rtmon.o
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
||||||
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
|
||||||
SCRIPTS=routel routef
|
SCRIPTS=routel
|
||||||
TARGETS=ip rtmon
|
TARGETS=ip rtmon
|
||||||
|
|
||||||
all: $(TARGETS) $(SCRIPTS)
|
all: $(TARGETS) $(SCRIPTS)
|
||||||
|
|
|
||||||
10
ip/routef
10
ip/routef
|
|
@ -1,10 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
# SPDX-License-Identifier: GPL-2.0
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.so man8/routel.8
|
|
||||||
|
|
@ -2,21 +2,13 @@
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
.LP
|
.LP
|
||||||
routel \- list routes with pretty output format
|
routel \- list routes with pretty output format
|
||||||
.br
|
|
||||||
routef \- flush routes
|
|
||||||
.SH "SYNTAX"
|
.SH "SYNTAX"
|
||||||
.LP
|
.LP
|
||||||
routel [\fItablenr\fP [\fIraw ip args...\fP]]
|
routel [\fItablenr\fP [\fIraw ip args...\fP]]
|
||||||
.br
|
|
||||||
routef
|
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.LP
|
.LP
|
||||||
These programs are a set of helper scripts you can use instead of raw iproute2 commands.
|
The routel script will list routes in a format that some might consider easier to interpret
|
||||||
.br
|
then the ip route list equivalent.
|
||||||
The routel script will list routes in a format that some might consider easier to interpret then the ip route list equivalent.
|
|
||||||
.br
|
|
||||||
The routef script does not take any arguments and will simply flush the routing table down the drain. Beware! This means deleting all routes which will make your network unusable!
|
|
||||||
|
|
||||||
.SH "AUTHORS"
|
.SH "AUTHORS"
|
||||||
.LP
|
.LP
|
||||||
The routel script was written by Stephen R. van den Berg <srb@cuci.nl>, 1999/04/18 and donated to the public domain.
|
The routel script was written by Stephen R. van den Berg <srb@cuci.nl>, 1999/04/18 and donated to the public domain.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue