]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/routef
ip route: get: allow zero-length subnet mask
[mirror_iproute2.git] / ip / routef
old mode 100644 (file)
new mode 100755 (executable)
index e69de29..c251e7b
--- a/ip/routef
+++ b/ip/routef
@@ -0,0 +1,10 @@
+#! /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