diff options
author | john-hotplug@fjellstad.org <john-hotplug@fjellstad.org> | 2004-02-17 19:02:44 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:32:28 -0700 |
commit | 24f8f09876e426ab1b5a4b7c76f25eededbeaa11 (patch) | |
tree | 2a177ca6eb108f918d970561a17a5d0a27f4846e /etc/init.d | |
parent | ad63031e49abc18a961c4b4302312744a487f417 (diff) |
[PATCH] init.d debian patch
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.
Diffstat (limited to 'etc/init.d')
-rw-r--r-- | etc/init.d/udev.debian | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/init.d/udev.debian b/etc/init.d/udev.debian index d67941cc13..776a73644c 100644 --- 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 |