1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

[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.
This commit is contained in:
john-hotplug@fjellstad.org 2004-02-17 19:02:44 -08:00 committed by Greg KH
parent ad63031e49
commit 24f8f09876

View File

@ -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