Author: pebender
Date: Wed Dec 24 21:41:56 2008
New Revision: 4127

Modified:
    trunk/gar-minimyth/html/minimyth/document-changelog.txt
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/wiimote
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/wiimote.pm

Log:
- Fixed a bug that prevented Wiimote devices from working.



Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt     (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt     Wed Dec 24  
21:41:56 2008
@@ -1,7 +1,7 @@
  MiniMyth Changelog

   
--------------------------------------------------------------------------------
-Changes since 62 (2008-12-23):
+Changes since 62 (2008-12-24):

  Current MythTV versions
      MythTV 0.20-softpad: version 0.20.2.softpad, release-0-20-fixes branch  
svn 16082,
@@ -19,6 +19,9 @@
      - Updated FFmpeg VDPAU support.
      - Updated MPlayer VDPAU support.
      - Updated Xine VDPAU support.
+
+Fixed bugs
+    - Fixed a bug that prevented Wiimote devices from working.

   
--------------------------------------------------------------------------------
  Changes since 61 (2008-12-23):

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/wiimote
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/wiimote
   
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.sh/init.d/wiimote
   
Wed Dec 24 21:41:56 2008
@@ -42,9 +42,14 @@
          fi

          # Start
-        if ! /sbin/modprobe uinput > /dev/null 2>&1 ; then
-            mm_message_output err "error: failed to load kernel module:  
uinput"
-            exit 1
+        if /usr/bin/test ! -e '/dev/uninput' ; then
+            if ! /sbin/modprobe uinput > /dev/null 2>&1 ; then
+                mm_message_output err "error: failed to load kernel  
module: uinput"
+                exit 1
+            fi
+            while /usr/bin/test ! -e '/dev/uninput' ; do
+                sleep 1
+            done
          fi

          if /usr/bin/test -z "${MM_WIIMOTE_ADDRESS_0}" &&

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/wiimote.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/wiimote.pm
     
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/wiimote.pm
     
Wed Dec 24 21:41:56 2008
@@ -61,11 +61,18 @@
              return 1;
          }

-        # Start
-        if (system(qq(/sbin/modprobe uinput > $devnull 2>&1)) != 0)
+        # Load uinput driver as needed.
+        if (! -e q(/dev/uinput))
          {
-            $minimyth->message_output('err', "error: failed to load kernel  
module: uinput");
-            return 0;
+            if (system(qq(/sbin/modprobe uinput > $devnull 2>&1)) != 0)
+            {
+                $minimyth->message_output('err', "error: failed to load  
kernel module: uinput");
+                return 0;
+            }
+            while (! -e q(/dev/uinput))
+            {
+                sleep 1;
+            }
          }

          my $address_0 = $minimyth->var_get('MM_WIIMOTE_ADDRESS_0');

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to