From: "John L. Fjellstad" Date: Mon, 16 Feb 2004 21:23:21 +0000 Subject: init.d debian patch Message-Id: <20040216212321.GA2531@fjellstad.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="jho1yZJdad60DJr+" List-Id: To: linux-hotplug@vger.kernel.org --jho1yZJdad60DJr+ Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. =20 --=20 John L. Fjellstad web: http://www.fjellstad.org/ Quis custodiet ipsos custodes --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="udev.debian.patch" --- 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 --OgqxwSJOaUobr8KG-- --jho1yZJdad60DJr+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iEYEARECAAYFAkAxNMkACgkQkz0vhQtHHRj1aQCg4LQTumzwwgzNWoCfhb2L/U6c ED0An2cQ6GfkIsmAXtGRHSTGELGTypyx =ysZf -----END PGP SIGNATURE----- --jho1yZJdad60DJr+-- ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel