git://git.onelab.eu
/
vsys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14f867
)
Change naming scheme
author
Andy Bavier
<acb@cs.princeton.edu>
Fri, 21 Mar 2008 21:05:08 +0000
(21:05 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Fri, 21 Mar 2008 21:05:08 +0000
(21:05 +0000)
factory/setup-link
patch
|
blob
|
history
diff --git
a/factory/setup-link
b/factory/setup-link
index
52ec656
..
df3638f
100755
(executable)
--- a/
factory/setup-link
+++ b/
factory/setup-link
@@
-4,11
+4,12
@@
IP=/sbin/ip
SLICE=$1
SLICEID=`id -u $SLICE`
-read LINKNUM
-LINK=${SLICEID}$LINKNUM
+read LABEL
read REMOTE
read KEY
+LINK=${LABEL}k$KEY
+
modprobe ip_gre
modprobe etun
@@
-18,7
+19,7
@@
$IP tunnel add $EGRE mode gre/eth remote $REMOTE key $KEY
$IP link set $EGRE up
### Setup etun
-ETUN0=v
eth
$LINK
+ETUN0=v$LINK
ETUN1=etun$LINK
echo $ETUN0,$ETUN1 > /sys/module/etun/parameters/newif
ifconfig $ETUN0 up