mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 15:03:29 +08:00
1e253d72f4
keep people from screwing their systems with routef minor patch here ... if you run `routef --help`, it'll turn around and flush your routing tables anyways :) so patch will have routef output usage if any arguments are given, otherwise it'll flush the tables ... idea is from Lars Strojny
10 lines
173 B
Bash
10 lines
173 B
Bash
#! /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
|