[Ultrapossum-cvs 600] demo/uml 1.2,1.3,shutdown

アーカイブの一覧に戻る

Masato Taruishi taru****@users*****
2004年 9月 28日 (火) 02:31:34 JST


===================================================================
RCS file: demo/uml/shutdown,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- demo/uml/shutdown	2004/09/27 15:23:05	1.2
+++ demo/uml/shutdown	2004/09/27 17:31:34	1.3
@@ -2,8 +2,13 @@
 
 set -e
 
+if test "x$1" = "x-n"; then
+  nowait=1
+  shift
+fi
+
 if test "x$1" = "x"; then
-  echo "Usage: $0 <server>" 1>&2
+  echo "Usage: $0 [-n] <server>" 1>&2
   exit 1
 fi
 
@@ -11,11 +16,13 @@
 trap "eval `ultrapossum-config term`" 0
 
 if ! test -e "$UMLDIR/$1/$1/mconsole"; then
-  echo "$1 not booted" 1>&2
   exit 0
 fi
 
-echo cad | uml_mconsole $UMLDIR/$1/$1/mconsole 2> /dev/null > /dev/null
+uml_mconsole $UMLDIR/$1/$1/mconsole cad > /dev/null 2> /dev/null
+if test "$nowait" = "1"; then
+  exit 0
+fi
 for s in 5 5 4 4 3 3 2 2 1 1 1
 do
   if ! include "$1" "`$MODULEDIR/uml/runlist`"; then



Ultrapossum-cvs メーリングリストの案内
アーカイブの一覧に戻る