From 442f93fa9edf617eee24701e274b96d9917e1ab6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 19 Aug 2004 04:46:58 +0000 Subject: run udev_start if necessary (#120605) --- rc.d/rc.sysinit | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- cgit v1.2.1