chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad63031
)
[PATCH] init.d debian patch
author
john-hotplug@fjellstad.org
<john-hotplug@fjellstad.org>
Wed, 18 Feb 2004 03:02:44 +0000
(19:02 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:32:28 +0000
(21:32 -0700)
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.
etc/init.d/udev.debian
patch
|
blob
|
history
diff --git
a/etc/init.d/udev.debian
b/etc/init.d/udev.debian
index d67941cc13e4a0219cf058e4f759e6e16f95df14..776a73644cd7c5bab3563bfd6c75ccbbebb25cc0 100644
(file)
--- a/
etc/init.d/udev.debian
+++ b/
etc/init.d/udev.debian
@@
-61,7
+61,8
@@
case "$1" in
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