mirror of
				https://git.proxmox.com/git/mirror_iproute2
				synced 2025-11-04 15:34:49 +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
 |