Author: pebender
Date: Wed Nov  5 20:05:47 2008
New Revision: 3916

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

Log:
- Fixed init so that MM_MEDIA_TV_URL does not need to be writable by
   user 'minimyth' unless mythbackend is enabled (MM_BACKEND_ENABLED='yes'),
   but is must still be readable by user 'minimyth'.



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 Nov  5  
20:05:47 2008
@@ -29,6 +29,9 @@
        the URL's query part to be ignored.
      - Worked around an issue in the perl based media init script that  
caused
        MM_MEDIA_TV_URL and MM_MEDIA_TV_MOUNTPOINT to fail.
+    - Fixed init so that MM_MEDIA_TV_URL does not need to be writable by
+      user 'minimyth' unless mythbackend is enabled  
(MM_BACKEND_ENABLED='yes'),
+      but is must still be readable by user 'minimyth'.

  Fixed build system
      - Added missing btusb.ko driver to wiimote library list.

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/media.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/media.pm
  
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/media.pm
  
Wed Nov  5 20:05:47 2008
@@ -46,8 +46,18 @@
                  $minimyth->message_output('err', "error: '$mountpoint' is  
not readable by user 'minimyth'.");
                  return 0;
              }
-            if (($mountpoint_name eq 'MM_MEDIA_TV_MOUNTPOINT')      ||
-                ($mountpoint_name eq 'MM_MEDIA_DVD_RIP_MOUNTPOINT'))
+            if ($mountpoint_name eq 'MM_MEDIA_TV_MOUNTPOINT')
+            {
+                if ($minimyth->var_get('MM_BACKEND_ENABLED') eq 'yes')
+                {
+                    if (system(qq(/bin/su -c '/usr/bin/test ! -w  
$mountpoint' - minimyth)) == 0)
+                    {
+                         
$minimyth->message_output('err', "error: '$mountpoint' is not writable by  
user 'minimyth'.");
+                        return 0;
+                    }
+                }
+            }
+            if ($mountpoint_name eq 'MM_MEDIA_DVD_RIP_MOUNTPOINT')
              {
                  if (system(qq(/bin/su -c '/usr/bin/test ! -w $mountpoint'  
- minimyth)) == 0)
                  {

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/media
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/media
        
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/media
        
Wed Nov  5 20:05:47 2008
@@ -19,9 +19,11 @@
              mm_message_output err "error: '${MM_MEDIA_TV_MOUNTPOINT}' is  
not readable by user 'minimyth'."
              exit 1
          fi
-        if /bin/su -c "/usr/bin/test ! -w ${MM_MEDIA_TV_MOUNTPOINT}"       
- minimyth ; then
-            mm_message_output err "error: '${MM_MEDIA_TV_MOUNTPOINT}' is  
not writable by user 'minimyth'."
-            exit 1
+        if /usr/bin/test "${MM_BACKEND_ENABLED}" = "yes" ; then
+            if /bin/su -c "/usr/bin/test ! -w ${MM_MEDIA_TV_MOUNTPOINT}" -  
minimyth ; then
+                mm_message_output err "error: '${MM_MEDIA_TV_MOUNTPOINT}'  
is not writable by user 'minimyth'."
+                exit 1
+            fi
          fi
      fi
      if /usr/bin/test -n "${MM_MEDIA_GALLERY_URL}" && /usr/bin/test  
-n "${MM_MEDIA_GALLERY_MOUNTPOINT}" ; then

--~--~---------~--~----~------------~-------~--~----~
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