updated all base packages
[hdw-linux/hdw-linux.git] / packages / base / udev / init_udev.sh
index e2f595c..9596c60 100644 (file)
@@ -29,7 +29,7 @@ run_udev()    {
        # all other devices
        for i in ${sysfs_dir}/class/*; do
                for j in $i/*; do
-                       # cruel hack, to not add/del /dev/null
+                       # cruel hack to not del /dev/null
                        if [ "$j" != "${sysfs_dir}/class/mem/null" -o \
                                        "$ACTION" != "remove" ] ; then
                        if [ -f $j/dev ]; then
@@ -38,7 +38,7 @@ run_udev()    {
                                        cut --delimiter='/' --fields=3-`
                                $bin $CLASS &
                        fi
-                       #fi
+                       fi
                done
        done
        return 0
@@ -63,13 +63,13 @@ case "$1"
 in
        start)
                echo -n "starting udev ..."
-               echo "/sbin/udev" > /proc/sys/kernel/hotplug
+               #echo "/sbin/udev" > /proc/sys/kernel/hotplug
                if [ ! -d $sysfs_dir/block ] ; then
                        echo "fatal: sysfs not mounted"
                        exit 1
                fi
                rm -f $udev_root/.udev.tdb
-               [ ! -f ${udev_root}/null ] && \
+               [ ! -c ${udev_root}/null ] && \
                        mknod -m 0660 ${udev_root}/null c 1 3
                export ACTION=add
                export UDEV_NO_SLEEP=1