Fix for newer udevs to detect udevstart
authorEric Edgar <rocket@gentoo.org>
Thu, 11 Aug 2005 13:06:49 +0000 (13:06 +0000)
committerEric Edgar <rocket@gentoo.org>
Thu, 11 Aug 2005 13:06:49 +0000 (13:06 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@302 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_compile.sh
generic/linuxrc

index 2af85fc974fa99b61b96ab70cc965c8a00490f60..f27a6bc8d106374fefe8942a3ea7e722cbef62da 100644 (file)
@@ -725,12 +725,23 @@ compile_udev() {
 
 
                strip udev || gen_die 'Failed to strip the udev binary!'
+               if [ -e udevstart ]
+               then
+                       strip udevstart || gen_die 'Failed to strip the udevstart binary!'
+               fi
 
                print_info 1 '      >> Installing...'
                install -d "${TEMP}/udev/etc/udev" "${TEMP}/udev/sbin" "${TEMP}/udev/etc/udev/scripts" "${TEMP}/udev/etc/udev/rules.d" "${TEMP}/udev/etc/udev/permissions.d" ||
                        gen_die 'Could not create directory hierarchy'
                install -m 0755 udev "${TEMP}/udev/sbin" ||
                        gen_die 'Could not install udev binary!'
+               
+               if [ -e udevstart ]
+               then
+                       install -m 0755 udevstart "${TEMP}/udev/sbin" ||
+                               gen_die 'Could not install udevstart binary!'
+               fi
+
                install -m 0644 etc/udev/udev.conf "${TEMP}/udev/etc/udev" ||
                                gen_die 'Could not install udev configuration!'
                install -m 0644 etc/udev/gentoo/udev.rules "${TEMP}/udev/etc/udev/rules.d/50-udev.rules" ||
index cb0f94bfb417ca642a81c0ba59e83fdd3685b292..5bb529749f1500b9059eb5bd2cfb77dee11c2ef6 100644 (file)
@@ -31,7 +31,14 @@ then
     /bin/busybox --install -s
 
     [ -e /linuxrc ] && rm /linuxrc
-    [ -e /sbin/udev ] && ln -s /sbin/udev /sbin/udevstart
+     
+    if [ -e /sbin/udev ]
+    then
+       if [ ! -e /sbin/udevstart ]
+       then
+               ln -s /sbin/udev /sbin/udevstart
+       fi
+    fi
 
     if [ -e /bin/lvm ]
     then