aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-08-19 04:46:58 +0000
committerBill Nottingham <notting@redhat.com>2004-08-19 04:46:58 +0000
commit442f93fa9edf617eee24701e274b96d9917e1ab6 (patch)
tree1f791c065f85d3d825ac14b804f91f57a3dd7503
parent43b7ec8a3e6ac548bf2a74c176ce3aa0ffa81bca (diff)
downloadinitscripts-442f93fa9edf617eee24701e274b96d9917e1ab6.tar
initscripts-442f93fa9edf617eee24701e274b96d9917e1ab6.tar.gz
initscripts-442f93fa9edf617eee24701e274b96d9917e1ab6.tar.bz2
initscripts-442f93fa9edf617eee24701e274b96d9917e1ab6.tar.xz
initscripts-442f93fa9edf617eee24701e274b96d9917e1ab6.zip
run udev_start if necessary (#120605)
-rwxr-xr-xrc.d/rc.sysinit13
1 files changed, 13 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a22c18bb..88ab6126 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -29,6 +29,14 @@ fi
mount -n -t proc /proc /proc
mount -n -t sysfs /sys /sys >/dev/null 2>&1
+if [ -f /etc/sysconfig/udev ];then
+ . /etc/sysconfig/udev
+fi
+
+if [ "$USE_UDEV" = "yes" -a "$UDEV_RAMFS" = "yes" ]; then
+ [ -x /sbin/start_udev ] && /sbin/start_udev
+fi
+
# Check SELinux status
selinuxfs=`awk '/ selinuxfs / { print $2 }' /proc/mounts`
SELINUX=
@@ -384,6 +392,11 @@ state=`awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts`
[ "$state" != "rw" -a "$READONLY" != "yes" ] && \
action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw /
+if [ "$USE_UDEV" = "yes" -a "$UDEV_RAMFS" = "no" ]; then
+ [ -x /sbin/start_udev ] && /sbin/start_udev
+fi
+
+
# LVM2 initialization
if [ -x /sbin/lvm.static ]; then
if ! LC_ALL=C fgrep -q "device-mapper" /proc/devices 2>/dev/null ; then