[Ultrapossum-cvs 609] demo/uml 1.4,1.5,map 1.3,1.4,shutdown

Back to archive index

Masato Taruishi taru****@users*****
2004年 9月 29日 (水) 16:29:43 JST


===================================================================
RCS file: demo/uml/map,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- demo/uml/map	2004/09/27 15:15:45	1.4
+++ demo/uml/map	2004/09/29 07:29:43	1.5
@@ -2,6 +2,10 @@
 
 set -e
 
+WIDTH=8
+NETMASK=29
+NETPREFIX=192.168.1
+
 if test "x$1" = "x"; then
   echo "$0 <server>" 1>&2
   exit 1
@@ -42,12 +46,12 @@
   fi
 fi
 
-n=`echo \(  $id - 1 \) \* 4 | bc`
+n=`echo \(  $id - 1 \) \* $WIDTH | bc`
 
-echo "net=192.168.1.$n/30"
-echo "bcast=192.168.1.`expr $n + 3`"
-echo "host=192.168.1.`expr $n + 1`"
-echo "uml=192.168.1.`expr $n + 2`"
+echo "net=$NETPREFIX.$n/$NETMASK"
+echo "bcast=$NETPREFIX.`expr $n + $WIDTH - 1`"
+echo "host=$NETPREFIX.`expr $n + 1`"
+echo "uml=$NETPREFIX.`expr $n + 2`"
 echo "host_if=tap$id"
 echo "ultrapossum_packages='$pkgs'"
 echo "local_gateway=$local_gateway"
===================================================================
RCS file: demo/uml/shutdown,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- demo/uml/shutdown	2004/09/27 17:31:34	1.3
+++ demo/uml/shutdown	2004/09/29 07:29:43	1.4
@@ -23,7 +23,7 @@
 if test "$nowait" = "1"; then
   exit 0
 fi
-for s in 5 5 4 4 3 3 2 2 1 1 1
+for s in 5 5 5 4 4 4 3 3 3 2 2 2 1 1 1
 do
   if ! include "$1" "`$MODULEDIR/uml/runlist`"; then
     exit 0



Ultrapossum-cvs メーリングリストの案内
Back to archive index