linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John L. Fjellstad" <john-hotplug@fjellstad.org>
To: linux-hotplug@vger.kernel.org
Subject: init.d debian patch
Date: Mon, 16 Feb 2004 21:23:21 +0000	[thread overview]
Message-ID: <20040216212321.GA2531@fjellstad.org> (raw)


[-- 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 --]

             reply	other threads:[~2004-02-16 21:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 21:23 John L. Fjellstad [this message]
2004-02-17 19:04 ` init.d debian patch 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040216212321.GA2531@fjellstad.org \
    --to=john-hotplug@fjellstad.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).