Author: pebender
Date: Tue Nov  4 14:20:19 2008
New Revision: 3911

Modified:
    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/acpi.pm
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_ACPI.pm
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/acpi
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_ACPI

Log:
- Added ability to disable the power button by setting  
MM_ACPI_EVENT_BUTTON_POWER='none'.



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     Tue Nov  4  
14:20:19 2008
@@ -1,7 +1,7 @@
  MiniMyth Changelog

   
--------------------------------------------------------------------------------
-Changes since 59 (2008-11-03):
+Changes since 59 (2008-11-04):

  Current MythTV versions
      MythTV 0.20-softpad: version 0.20.2.softpad, release-0-20-fixes branch  
svn 16082,
@@ -16,6 +16,10 @@
      - Updated Xorg 7.3 Mesa version 7.2.
      - Updated intel video driver to version 2.5.0.
      - Removed evtouch input driver.
+
+Modified init
+    - Added ability to disable the power button by setting
+      MM_ACPI_EVENT_BUTTON_POWER='none'.

  Modified kernel
      - Removed usbtouchscreen.ko driver.

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        Tue Nov 
 4  
14:20:19 2008
@@ -405,8 +405,8 @@
              <dt  
id="MM_ACPI_EVENT_BUTTON_POWER"><strong>MM_ACPI_EVENT_BUTTON_POWER</strong></dt>
              <dd>
                <p>
-                Set the action to use when the frontend's power button is  
pushed.
-                Valid values are 'off' and 'sleep', with 'off' the default.
+                Set the action to take when the frontend's power button is  
pushed.
+                Valid values are 'off', 'sleep' and 'none', with 'off' the  
default.
                </p>
              </dd>
              <dt  
id="MM_ACPI_VIDEO_FLAGS"><strong>MM_ACPI_VIDEO_FLAGS</strong></dt>
@@ -2890,7 +2890,7 @@
                alt="Valid CSS!"      height="31" width="88" /></a>
          </div>
          <div class="version">
-          Last Updated on 2008-11-01
+          Last Updated on 2008-11-04
            <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/acpi.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/acpi.pm
   
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/acpi.pm
   
Tue Nov  4 14:20:19 2008
@@ -35,6 +35,12 @@
                  '/etc/acpi/events/power',
                  { '@MM_ACPI_EVENT_BUTTON_POWER@' => '/usr/bin/mm_sleep' });
          }
+        when (/^none$/)
+        {
+            $minimyth->file_replace_variable(
+                '/etc/acpi/events/power',
+                { '@MM_ACPI_EVENT_BUTTON_POWER@' => '/bin/true'         });
+        }
      }

      $minimyth->message_output('info', "starting ACPI ...");

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_ACPI.pm
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_ACPI.pm
   
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d.perl/init/conf/MM_ACPI.pm
   
Tue Nov  4 14:20:19 2008
@@ -17,7 +17,7 @@
  $var_list{'MM_ACPI_EVENT_BUTTON_POWER'} =
  {
          value_default => 'off',
-       value_valid   => 'off|sleep'
+       value_valid   => 'off|sleep|none'
  };

  $var_list{'MM_ACPI_VIDEO_FLAGS'} =

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/acpi
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/acpi
         
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/acpi
         
Tue Nov  4 14:20:19 2008
@@ -15,6 +15,9 @@
          sleep)
              /bin/sed  
-e '[EMAIL PROTECTED]@%/usr/bin/mm_sleep%' -i  
/etc/acpi/events/power
              ;;
+        none)
+            /bin/sed  
-e '[EMAIL PROTECTED]@%/bin/true%'         -i  
/etc/acpi/events/power
+            ;;
      esac

      mm_message_output info "starting ACPI ..."

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_ACPI
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_ACPI
       
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init.d/conf.d/MM_ACPI
       
Tue Nov  4 14:20:19 2008
@@ -11,7 +11,8 @@

      if /usr/bin/test ! -z "${MM_ACPI_EVENT_BUTTON_POWER}"           && \
         /usr/bin/test !    "${MM_ACPI_EVENT_BUTTON_POWER}" = "off"   && \
-       /usr/bin/test !    "${MM_ACPI_EVENT_BUTTON_POWER}" = "sleep" ; then
+       /usr/bin/test !    "${MM_ACPI_EVENT_BUTTON_POWER}" = "sleep" && \
+       /usr/bin/test !    "${MM_ACPI_EVENT_BUTTON_POWER}" = "none"  ; then
          mm_message_output err "error:  
MM_ACPI_EVENT_BUTTON_POWER='${MM_ACPI_EVENT_BUTTON_POWER}' is not valid."
      fi


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