mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 20:48:07 +00:00

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
|