[Ultrapossum-cvs 264] demo/uml 1.3,1.4,update-uml

Back to archive index

Masato Taruishi taru****@sourc*****
2004年 7月 1日 (木) 04:18:39 JST


===================================================================
RCS file: demo/uml/update-uml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- demo/uml/update-uml	2004/06/30 09:15:16	1.3
+++ demo/uml/update-uml	2004/06/30 19:18:38	1.4
@@ -48,7 +48,18 @@
 }
 
 sanity() {
-  :
+  if test -f "/dev/net/tun"; then
+    echo "E: No tuntp device found: /dev/net/tun, modprobe tun?" 1>&2
+    exit 1
+  fi
+  if ! su -c "test -r /dev/net/tun" $UML_USER; then
+    echo "E: No read permission to /dev/net/tun for $UML_USER" 1>&2
+    exit 1
+  fi
+  if ! su -c "test -w /dev/net/tun" $UML_USER; then
+    echo "E: No write permission to /dev/net/tun for $UML_USER" 1>&2
+    exit 1
+  fi
 }
 
 case "x$1" in



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