]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
added notes for creating essential nodes in INSTALL, adapted udev init script
authorhackbard <hackbard>
Thu, 29 Jul 2004 17:08:50 +0000 (17:08 +0000)
committerhackbard <hackbard>
Thu, 29 Jul 2004 17:08:50 +0000 (17:08 +0000)
doc/INSTALL
doc/VERSION
packages/base/udev/init_udev.sh

index 95960ddd2a6f828d2f5b19bfe701af5b398c87ac..082aad677c73db632365b6fda89758f78b91f042 100644 (file)
@@ -107,6 +107,11 @@ in the ./misc/hdw-tools directory.
 final steps
 -----------
 
+|--------------------------------------------------------------------------|
+| you may want/need to mount proc/sysfs somewhere in tis steps, simply do: |
+| mount /proc ; mount /sys  (when you think its needed)                    | 
+|--------------------------------------------------------------------------|
+
 - chroot to your new build system and compile a new kernel
   (you have to do this if you are not booting via nfsroot!)
        
@@ -137,7 +142,16 @@ final steps
        vi /etc/lilo.conf
        (add vmlinuz_hdw)
        lilo
+
+- create essential console and null nodes (!important!)
+
+       example:
        
+       mknod -m 0666 /mnt/hdw-target/dev/null
+       mknod -m 0600 /mnt/hdw-target/dev/null
+
+       [ WARNING : your system will not start up without these nodes ]
+
 - have a look at the config files in /mnt/hdw-target/etc/* and adjust to your 
   needs. reboot then - good luck! ;)
        
index 41b364d76eea0c8657828d1b416116e373e1ed6b..987a99df98ef65378aa52226879b9de65e8dcb84 100644 (file)
@@ -1 +1 @@
-hdw-linux-cvs
+hdw-linux-0.3
index 25fdf0f99e62b6f105c94db643f497d99cf8a3f5..e2f595c6844cb9d8d509f5f6d4dc1e09f74964c0 100644 (file)
@@ -30,14 +30,15 @@ run_udev()  {
        for i in ${sysfs_dir}/class/*; do
                for j in $i/*; do
                        # cruel hack, to not add/del /dev/null
-                       if [ "$j" != "${sysfs_dir}/class/mem/null" ] ; then
+                       if [ "$j" != "${sysfs_dir}/class/mem/null" -o \
+                                       "$ACTION" != "remove" ] ; then
                        if [ -f $j/dev ]; then
                                export DEVPATH=${j#${sysfs_dir}}
                                CLASS=`echo ${i#${sysfs_dir}} | \
                                        cut --delimiter='/' --fields=3-`
                                $bin $CLASS &
                        fi
-                       fi
+                       #fi
                done
        done
        return 0
@@ -68,7 +69,8 @@ in
                        exit 1
                fi
                rm -f $udev_root/.udev.tdb
-               mknod -m 0666 ${udev_root}/null c 1 3
+               [ ! -f ${udev_root}/null ] && \
+                       mknod -m 0660 ${udev_root}/null c 1 3
                export ACTION=add
                export UDEV_NO_SLEEP=1
                run_udev
@@ -81,7 +83,6 @@ in
                export ACTION=remove
                run_udev
                del_nodes
-               rm ${udev_root}/null
                echo " done"
                ;;
        restart)