Statistics
| Branch: | Tag: | Revision:

root / remove-network @ cf51ea5b

History | View | Annotate | Download (219 Bytes)

1
#!/bin/bash
2

    
3
DIR=/var/lib/snf-network
4
NAME=$1
5
RT_TABLES=/etc/iproute2/rt_tables
6

    
7

    
8

    
9
if [ $# -ne 1 ]; then
10
  echo "$0 <name>"
11
  exit 1
12
fi
13

    
14
# remove old entry
15
sed -i '/rt_'"$NAME"'$/ d' $RT_TABLES
16

    
17
rm $DIR/networks/$NAME