s243a

routef

Oct 1st, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. # Path /sbin/routef
  2. # Part of iproute2 http://www.pearltrees.com/s243a/iproute2/id14833365
  3. #! /bin/sh
  4.  
  5. if [ -z "$*" ] ; then
  6.     exec ip -4 ro flush  scope global  type unicast
  7. else
  8.     echo "Usage: routef"
  9.     echo
  10.     echo "This script will flush the IPv4 routing table"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment