linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* init.d debian patch
@ 2004-02-16 21:23 John L. Fjellstad
  2004-02-17 19:04 ` Greg KH
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: John L. Fjellstad @ 2004-02-16 21:23 UTC (permalink / raw)
  To: linux-hotplug


[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]

I dualboot between 2.4.x and 2.6.x right now, and although I
want udev to start up when 2.6 is booting, I don't want it to try when
2.4.x is booting.

This is a small patch to not start up udev if sysfs is not
mounted.  

-- 
John L. Fjellstad
web: http://www.fjellstad.org/          Quis custodiet ipsos custodes

[-- Attachment #1.2: udev.debian.patch --]
[-- Type: text/plain, Size: 373 bytes --]

--- udev.debian.orig	2004-02-13 02:01:37.000000000 +0100
+++ udev.debian	2004-02-16 22:20:19.000000000 +0100
@@ -61,7 +61,8 @@
 	if [ ! -d $udev_dir ]; then
 		mkdir $udev_dir
 	fi
-	if [ ! -d $sysfs_dir ]; then
+	# don't use udev if sysfs is not mounted
+	if [ ! -d $sysfs_dir/block ]; then
 		exit 1
 	fi
 	# propogate /udev from /sys - we only need this while we do not

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-02-17 22:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-16 21:23 init.d debian patch John L. Fjellstad
2004-02-17 19:04 ` Greg KH
2004-02-17 19:53 ` Bryan W. Headley
2004-02-17 19:55 ` Marco d'Itri
2004-02-17 21:00 ` Greg KH
2004-02-17 21:04 ` Greg KH
2004-02-17 21:28 ` Marco d'Itri
2004-02-17 22:06 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).