]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: remove routef script
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Sep 2021 20:47:00 +0000 (13:47 -0700)
committerDavid Ahern <dsahern@kernel.org>
Mon, 6 Sep 2021 22:31:23 +0000 (16:31 -0600)
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>
ip/Makefile
ip/routef [deleted file]
man/man8/routef.8 [deleted file]
man/man8/routel.8

index e27dfa09787790cf408a7772d1805aee61d64262..bcc5f816b319f9a064a0f252915b5cf796f3510c 100644 (file)
@@ -18,7 +18,7 @@ RTMONOBJ=rtmon.o
 include ../config.mk
 
 ALLOBJ=$(IPOBJ) $(RTMONOBJ)
-SCRIPTS=routel routef
+SCRIPTS=routel
 TARGETS=ip rtmon
 
 all: $(TARGETS) $(SCRIPTS)
diff --git a/ip/routef b/ip/routef
deleted file mode 100755 (executable)
index c251e7b..0000000
--- a/ip/routef
+++ /dev/null
@@ -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
diff --git a/man/man8/routef.8 b/man/man8/routef.8
deleted file mode 100644 (file)
index c2a7059..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.so man8/routel.8
index 2270eacb51fb0567e1edc88ec0b4f3934a85636b..b32eeafcf69db22fda1916eb0194d92f219c8390 100644 (file)
@@ -2,21 +2,13 @@
 .SH "NAME"
 .LP
 routel \- list routes with pretty output format
-.br
-routef \- flush routes
 .SH "SYNTAX"
 .LP
 routel [\fItablenr\fP [\fIraw ip args...\fP]]
-.br
-routef
 .SH "DESCRIPTION"
 .LP
-These programs are a set of helper scripts you can use instead of raw iproute2 commands.
-.br
-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!
-
+The routel script will list routes in a format that some might consider easier to interpret
+then the ip route list equivalent.
 .SH "AUTHORS"
 .LP
 The routel script was written by Stephen R. van den Berg <srb@cuci.nl>, 1999/04/18 and donated to the public domain.