git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73260b7
)
migrate old style interface files to new style
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Mon, 9 Aug 2010 19:55:51 +0000
(15:55 -0400)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Mon, 9 Aug 2010 19:55:51 +0000
(15:55 -0400)
util-vserver-pl.spec
patch
|
blob
|
history
diff --git
a/util-vserver-pl.spec
b/util-vserver-pl.spec
index
3b3edf7
..
dc38161
100644
(file)
--- a/
util-vserver-pl.spec
+++ b/
util-vserver-pl.spec
@@
-89,7
+89,13
@@
do
mkdir -p $i/sysctl/0
echo net.ipv4.ip_forward > $i/sysctl/0/setting
echo 1 > $i/sysctl/0/value
-
+
+ mkdir $i/interfaces/0 $i/interfaces/1
+ hostname -i > $i/interfaces/0/ip
+ touch $i/interfaces/0/nodev
+ echo "127.0.0.1" $i/interfaces/1/ip
+ touch $i/interfaces/1/nodev
+
echo -e "persistent\n~info_init" > $i/cflags
/usr/sbin/vattribute --set --xid `cat $i/context` --flag ~sched_hard
done