[Lunar-commits] CVS: moonbase/filesys/udev udev,1.2,1.3

Jaime Buffery nestu at lunar-linux.org
Wed Nov 24 10:34:42 UTC 2004


Update of /var/cvs/lunar/moonbase/filesys/udev
In directory espresso.foo-projects.org:/tmp/cvs-serv3518

Modified Files:
	udev 
Log Message:
No longer we create /var/lock/subsys/udev. The checks are done on udev.tdb.
If it is under udev_root then udev is running. Stopping while using udev
as /dev in now disallowed


Index: udev
===================================================================
RCS file: /var/cvs/lunar/moonbase/filesys/udev/udev,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- udev	24 Nov 2004 10:12:50 -0000	1.2
+++ udev	24 Nov 2004 10:34:40 -0000	1.3
@@ -126,9 +126,14 @@
 
 	success /bin/true
 	echo
-	touch /var/lock/subsys/udev
 	;;
   stop)
+	# if used as regular /dev nodes, do not allow to remove.
+	if [ -f /dev/.udev.tdb ]; then
+	    echo "Udev nodes in use under /dev. Cannot remove."
+	    echo 4;
+	fi
+
   	# be careful
 	echo -n $"Removing udev device nodes: "
 	export ACTION=remove
@@ -136,10 +141,10 @@
 	remove_extra_nodes
 	success /bin/true
 	echo
-	rm -f /var/lock/subsys/udev
+	rm -f $udev_root/.udev.tdb       
 	;;
   status)
-	if [ -f /var/lock/subsys/udev ]; then
+	if [ -f $udev_root/.udev.tdb ]; then
 		echo $"$prog has run"
 		exit 0
 	fi



More information about the Lunar-commits mailing list