All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: netdev@vger.kernel.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH iproute2-next 3/4] ip: remove routef script
Date: Wed,  1 Sep 2021 13:47:00 -0700	[thread overview]
Message-ID: <20210901204701.19646-4-sthemmin@microsoft.com> (raw)
In-Reply-To: <20210901204701.19646-1-sthemmin@microsoft.com>

From: Stephen Hemminger <stephen@networkplumber.org>

This script is old and limited to IPv4.
Using ip route command directly is better option.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 ip/Makefile       |  2 +-
 ip/routef         | 10 ----------
 man/man8/routef.8 |  1 -
 man/man8/routel.8 | 12 ++----------
 4 files changed, 3 insertions(+), 22 deletions(-)
 delete mode 100755 ip/routef
 delete mode 100644 man/man8/routef.8

diff --git a/ip/Makefile b/ip/Makefile
index e27dfa097877..bcc5f816b319 100644
--- a/ip/Makefile
+++ b/ip/Makefile
@@ -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
index c251e7b87efd..000000000000
--- 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
index c2a70598923f..000000000000
--- a/man/man8/routef.8
+++ /dev/null
@@ -1 +0,0 @@
-.so man8/routel.8
diff --git a/man/man8/routel.8 b/man/man8/routel.8
index 2270eacb51fb..b32eeafcf69d 100644
--- a/man/man8/routel.8
+++ b/man/man8/routel.8
@@ -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.
-- 
2.30.2


  parent reply	other threads:[~2021-09-01 20:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01 20:46 [PATCH iproute2-next 0/4] Cleanup of ip scripts Stephen Hemminger
2021-09-01 20:46 ` [PATCH iproute2-next 1/4] ip: remove old rtpr script Stephen Hemminger
2021-09-01 20:46 ` [PATCH iproute2-next 2/4] ip: remove ifcfg script Stephen Hemminger
2021-09-01 20:47 ` Stephen Hemminger [this message]
2021-09-01 20:47 ` [PATCH iproute2-next 4/4] ip: rewrite routel in python Stephen Hemminger
2021-09-06 22:33 ` [PATCH iproute2-next 0/4] Cleanup of ip scripts David Ahern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210901204701.19646-4-sthemmin@microsoft.com \
    --to=stephen@networkplumber.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.