Author: pebender
Date: Sun Sep 14 08:44:30 2008
New Revision: 3752

Modified:
    trunk/gar-minimyth/html/minimyth/conf/minimyth.conf
    trunk/gar-minimyth/html/minimyth/document-changelog.txt
    trunk/gar-minimyth/html/minimyth/document-minimyth_conf.html
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_PLUGIN.pm
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/mythtv.pm
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_PLUGIN
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/mythtv
    trunk/gar-minimyth/script/minimyth.conf.mk

Log:
- Added MM_PLUGIN_INFORMATION_CENTER_ENABLED for disabling (i.e. removing)
   the 'Information Center' menu.



Modified: trunk/gar-minimyth/html/minimyth/conf/minimyth.conf
==============================================================================
--- trunk/gar-minimyth/html/minimyth/conf/minimyth.conf (original)
+++ trunk/gar-minimyth/html/minimyth/conf/minimyth.conf Sun Sep 14 08:44:30  
2008
@@ -151,6 +151,7 @@
   
################################################################################
  # Myth plugin configuration variables.
  #
+# MM_PLUGIN_INFORMATION_CENTER_ENABLED
  # MM_PLUGIN_OPTICAL_DISK_ENABLED
  # MM_PLUGIN_BROWSER_ENABLED
  # MM_PLUGIN_GALLERY_ENABLED

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     Sun Sep 14  
08:44:30 2008
@@ -10,6 +10,10 @@
  Modified MPlayer SVN version:
      - Changed it to use the external dvdread libraries.

+Modified MiniMyth configuration
+    - Added MM_PLUGIN_INFORMATION_CENTER_ENABLED for disabling (i.e.  
removing)
+      the 'Information Center' menu.
+
  Modified MiniMyth commands
      - Changed mm_slpeed so that is saves the system clock to the hardware
        clock on suspend and sets the system clock to the hardware clock on

Modified: trunk/gar-minimyth/html/minimyth/document-minimyth_conf.html
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-minimyth_conf.html        
(original)
+++ trunk/gar-minimyth/html/minimyth/document-minimyth_conf.html        Sun Sep 
14  
08:44:30 2008
@@ -1346,6 +1346,7 @@
              <li><a href="#MM_PLUGIN-overview">Overview</a></li>
            </ul>
            <ul>
+            <li><a  
href="#MM_PLUGIN_INFORMATION_CENTER_ENABLED">MM_PLUGIN_INFORMATION_CENTER_ENABLED</a></li>
              <li><a  
href="#MM_PLUGIN_OPTICAL_DISK_ENABLED">MM_PLUGIN_OPTICAL_DISK_ENABLED</a></li>
              <li><a  
href="#MM_PLUGIN_BROWSER_ENABLED">MM_PLUGIN_BROWSER_ENABLED</a></li>
              <li><a  
href="#MM_PLUGIN_GALLERY_ENABLED">MM_PLUGIN_GALLERY_ENABLED</a></li>
@@ -1365,12 +1366,29 @@
                  Myth plugins related configuration variables.
                </p>
              </dd>
+            <dt  
id="MM_PLUGIN_INFORMATION_CENTER_ENABLED"><strong>MM_PLUGIN_INFORMATION_CENTER_ENABLED</strong></dt>
+            <dd>
+              <p>
+                Indicate whether or not to enable MythTV support for  
the 'Information Center' menu.
+                Valid values are 'yes' and 'no', with 'yes' the default.
+              </p>
+              <p>
+                If you are disabling all plugins under the  'Information  
Center' menu,
+                and you do not use the 'System Status' sub-menu,
+                then disabling the 'Information Center' menu can reduce  
menu clutter.
+              </p>
+            </dd>
              <dt  
id="MM_PLUGIN_OPTICAL_DISK_ENABLED"><strong>MM_PLUGIN_OPTICAL_DISK_ENABLED</strong></dt>
              <dd>
                <p>
-                Indicate whether or not to enable MythTV support for  
optical disks.
+                Indicate whether or not to enable MythTV support  
for 'Optical Disks' menu.
                  Valid values are 'yes' and 'no', with 'yes' the default.
                </p>
+              <p>
+                If you are disabling all plugins under the  'Optical  
Disks' menu,
+                or you do not have an optical disk,
+                then disabling the 'Information Center' menu can reduce  
menu clutter.
+              </p>
              </dd>
              <dt  
id="MM_PLUGIN_BROWSER_ENABLED"><strong>MM_PLUGIN_BROWSER_ENABLED</strong></dt>
              <dd>
@@ -2747,7 +2765,7 @@
                alt="Valid CSS!"      height="31" width="88" /></a>
          </div>
          <div class="version">
-          Last Updated on 2008-09-10
+          Last Updated on 2008-09-14
            <br />
             
&lt;&nbsp;mailto&nbsp;:&nbsp;webmaster&nbsp;at&nbsp;minimyth&nbsp;dot&nbsp;org&nbsp;&gt;
          </div>

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_PLUGIN.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_PLUGIN.pm
         
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_PLUGIN.pm
         
Sun Sep 14 08:44:30 2008
@@ -14,6 +14,11 @@
      return \%var_list;
  }

+$var_list{'MM_PLUGIN_INFORMATION_CENTER_ENABLED'} =
+{
+    value_default  => 'yes',
+    value_valid    => 'no|yes'
+};
  $var_list{'MM_PLUGIN_OPTICAL_DISK_ENABLED'} =
  {
      value_default  => 'yes',

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/mythtv.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/mythtv.pm
         
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/mythtv.pm
         
Sun Sep 14 08:44:30 2008
@@ -166,6 +166,12 @@
      }

      # Delete disabled plugins.
+    if ($minimyth->var_get('MM_PLUGIN_INFORMATION_CENTER_ENABLED') eq 'no')
+    {
+        $minimyth->file_replace_variable(
+            '/usr/share/mythtv/mainmenu.xml',
+            { '<type>MENU_INFO_CENTER</type>'  
=> '<type>MENU_INFO_CENTER</type><depends></depends>' });
+    }
      if ($minimyth->var_get('MM_PLUGIN_OPTICAL_DISK_ENABLED') eq 'no')
      {
          $minimyth->file_replace_variable(

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_PLUGIN
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_PLUGIN
     
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_PLUGIN
     
Sun Sep 14 08:44:30 2008
@@ -8,6 +8,11 @@
  }

  conf_check_MM_PLUGIN() {
+    if /usr/bin/test !  
-z "${MM_PLUGIN_INFORMATION_CENTER_ENABLED}"          && \
+       /usr/bin/test !    "${MM_PLUGIN_INFORMATION_CENTER_ENABLED}"  
= "yes"  && \
+       /usr/bin/test !    "${MM_PLUGIN_INFORMATION_CENTER_ENABLED}"  
= "no"   ; then
+        mm_message_output err "error:  
MM_PLUGIN_INFORMATION_CENTER_ENABLED='${MM_PLUGIN_INFORMATION_CENTER_ENABLED}'  
is not valid."
+    fi
      if /usr/bin/test ! -z "${MM_PLUGIN_OPTICAL_DISK_ENABLED}"          && \
         /usr/bin/test !    "${MM_PLUGIN_OPTICAL_DISK_ENABLED}" = "yes"  && \
         /usr/bin/test !    "${MM_PLUGIN_OPTICAL_DISK_ENABLED}" = "no"   ;  
then
@@ -68,6 +73,9 @@
  }

  conf_default_MM_PLUGIN() {
+    if /usr/bin/test -z "${MM_PLUGIN_INFORMATION_CENTER_ENABLED}" ; then
+        MM_PLUGIN_INFORMATION_CENTER_ENABLED='yes'
+    fi
      if /usr/bin/test -z "${MM_PLUGIN_OPTICAL_DISK_ENABLED}" ; then
          MM_PLUGIN_OPTICAL_DISK_ENABLED='yes'
      fi
@@ -148,17 +156,18 @@
  conf_write_MM_PLUGIN() {
      local conf_file=$1

-    conf_variable_write "${conf_file}"  
MM_PLUGIN_OPTICAL_DISK_ENABLED "${MM_PLUGIN_OPTICAL_DISK_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_BROWSER_ENABLED      "${MM_PLUGIN_BROWSER_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_GALLERY_ENABLED      "${MM_PLUGIN_GALLERY_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_GAME_ENABLED         "${MM_PLUGIN_GAME_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_MUSIC_ENABLED        "${MM_PLUGIN_MUSIC_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_NEWS_ENABLED         "${MM_PLUGIN_NEWS_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_PHONE_ENABLED        "${MM_PLUGIN_PHONE_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_STREAM_ENABLED       "${MM_PLUGIN_STREAM_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_VIDEO_ENABLED        "${MM_PLUGIN_VIDEO_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_WEATHER_ENABLED      "${MM_PLUGIN_WEATHER_ENABLED}"
-    conf_variable_write "${conf_file}"  
MM_PLUGIN_ZONEMINDER_ENABLED   "${MM_PLUGIN_ZONEMINDER_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_INFORMATION_CENTER_ENABLED "${MM_PLUGIN_INFORMATION_CENTER_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_OPTICAL_DISK_ENABLED       "${MM_PLUGIN_OPTICAL_DISK_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_BROWSER_ENABLED            "${MM_PLUGIN_BROWSER_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_GALLERY_ENABLED            "${MM_PLUGIN_GALLERY_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_GAME_ENABLED               "${MM_PLUGIN_GAME_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_MUSIC_ENABLED              "${MM_PLUGIN_MUSIC_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_NEWS_ENABLED               "${MM_PLUGIN_NEWS_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_PHONE_ENABLED              "${MM_PLUGIN_PHONE_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_STREAM_ENABLED             "${MM_PLUGIN_STREAM_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_VIDEO_ENABLED              "${MM_PLUGIN_VIDEO_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_WEATHER_ENABLED            "${MM_PLUGIN_WEATHER_ENABLED}"
+    conf_variable_write "${conf_file}"  
MM_PLUGIN_ZONEMINDER_ENABLED         "${MM_PLUGIN_ZONEMINDER_ENABLED}"

      return 0
  }

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/mythtv
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/mythtv
       
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/mythtv
       
Sun Sep 14 08:44:30 2008
@@ -143,6 +143,10 @@
      done

      # Delete disabled plugins.
+    if /usr/bin/test "${MM_PLUGIN_INFORMATION_CENTER_ENABLED}" = "no" ;  
then
+        /bin/sed -i  
-e 
's%<type>MENU_INFO_CENTER</type>%<type>MENU_INFO_CENTER</type><depends></depends>%'
  
\
+            /usr/share/mythtv/mainmenu.xml
+    fi
      if /usr/bin/test "${MM_PLUGIN_OPTICAL_DISK_ENABLED}" = "no" ; then
          /bin/sed -i -e 's%<depends>mythmusic mythvideo mytharchive  
mythburn</depends>%<depends>disabled</depends>%' \
              /usr/share/mythtv/mainmenu.xml

Modified: trunk/gar-minimyth/script/minimyth.conf.mk
==============================================================================
--- trunk/gar-minimyth/script/minimyth.conf.mk  (original)
+++ trunk/gar-minimyth/script/minimyth.conf.mk  Sun Sep 14 08:44:30 2008
@@ -16,7 +16,7 @@
                                )

  # Configuration file (minimyth.conf) version.
-mm_CONF_VERSION           ?= 35
+mm_CONF_VERSION           ?= 36

   
#-------------------------------------------------------------------------------
  # Variables that you are likely to be override based on your environment.

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