[Ultrapossum-cvs 574] ultrapossum/init.d 1.8,1.9,10config

Back to archive index

Masato Taruishi taru****@users*****
2004年 9月 27日 (月) 18:07:56 JST


===================================================================
RCS file: ultrapossum/init.d/10config,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ultrapossum/init.d/10config	2004/09/24 03:46:08	1.8
+++ ultrapossum/init.d/10config	2004/09/27 09:07:56	1.9
@@ -193,15 +193,16 @@
 # retrieve the value of the specified varialble in the specified status file
 # getvalues <status> [<var>...]
 getvalues() {
-  if test "x$2" = "x"; then
-    cat "$1"
-  else
-    f=$1
-    shift
-    for a in $@; do
-      egrep "^$a=" "$f"
-    done
-  fi
+  (
+    if test "x$2" = "x"; then
+      cat "$1"
+    else
+      f=$1
+      shift
+      source_shell $f
+      getconfig $@
+    fi
+  )
 }
 
 # getvalue <status> <var>



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