Author: glen
Date: Mon Apr  6 15:24:59 2009
New Revision: 10311

Modified:
   geninitrd/trunk/mod-uvesafb.sh
Log:
- find v86d from initrd dir

Modified: geninitrd/trunk/mod-uvesafb.sh
==============================================================================
--- geninitrd/trunk/mod-uvesafb.sh      (original)
+++ geninitrd/trunk/mod-uvesafb.sh      Mon Apr  6 15:24:59 2009
@@ -5,9 +5,24 @@
 # whether v86d should be installed
 need_uvesafb=no
 
+# setup geninitrd module
+# @access      public
+setup_mod_uvesafb() {
+       v86d=$(find_tool $initrd_dir/v86d /sbin/v86d)
+       if [ -x "$v86d" ]; then
+               USE_V86D=yes
+       else
+               USE_V86D=no
+       fi
+}
+
 # find modules for for fbsplash
 # @access      public
 find_modules_uvesafb() {
+       if ! is_yes "$USE_V86D"; then
+               return
+       fi
+
        # if we are adding uvesafb, we need v86d as well
        local m
        for m in $MODULES; do
@@ -28,5 +43,5 @@
        mknod $DESTDIR/dev/mem c 1 1
        mknod $DESTDIR/dev/tty1 c 4 1
        inst_d /sbin
-       inst_exec /sbin/v86d /sbin
+       inst_exec $v86d /sbin
 }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to