Revision: 5818
Author: pebender
Date: Wed Nov 11 13:29:26 2009
Log: - Fixed a bug that caused mm_sleep and mm_sleep_on_ss to output an  
error
   messages when either mm_external_power_off or mm_external_power_on were
   not present.


http://code.google.com/p/minimyth/source/detail?r=5818

Modified:
  /trunk/gar-minimyth/html/minimyth/document-changelog.txt
   
/trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_external_on_ss
   
/trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep

=======================================
--- /trunk/gar-minimyth/html/minimyth/document-changelog.txt    Wed Nov 11  
13:27:11 2009
+++ /trunk/gar-minimyth/html/minimyth/document-changelog.txt    Wed Nov 11  
13:29:26 2009
@@ -16,3 +16,8 @@
                                                   VDPAU (patch  
glvdpau20744).
      MythTV 0.22:         version 0.22.0,         release-0-22-fixes branch  
svn 22783.
      MythTV trunk:        version trunk.22658     trunk svn 22758.
+
+Fixed bugs
+    - Fixed a bug that caused mm_sleep and mm_sleep_on_ss to output an  
error
+      messages when either mm_external_power_off or mm_external_power_on  
were
+      not present.
=======================================
---  
/trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_external_on_ss
   
Mon May 25 20:58:28 2009
+++  
/trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_external_on_ss
   
Wed Nov 11 13:29:26 2009
@@ -37,12 +37,18 @@

  sub power_off
  {
-    system(qq(/usr/bin/mm_external_power_off));
+    if (-e q(/usr/bin/mm_external_power_off)
+    {
+        system(q(/usr/bin/mm_external_power_off));
+    }
  }

  sub power_on
  {
-    system(qq(/usr/bin/mm_external_power_on));
+    if (-e q(/usr/bin/mm_external_power_on)
+    {
+        system(qq(/usr/bin/mm_external_power_on));
+    }
  }

  my @job_queue :shared = ();
=======================================
---  
/trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep   
 
Wed Jun 17 15:56:52 2009
+++  
/trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep   
 
Wed Nov 11 13:29:26 2009
@@ -24,7 +24,10 @@
  File::Path::mkpath("/var/lib/mm_sleep.$$", { mode => 0755 });

  # Turn off any external equipment.
-system(qq(/usr/bin/mm_external_power_off));
+if (-e q(/usr/bin/mm_external_power_off)
+{
+    system(q(/usr/bin/mm_external_power_off));
+}

  # Stop all X applications, except mythfrontend and applications started by  
xinit.
  $minimyth->x_applications_exit(':everything');
@@ -198,7 +201,10 @@
  }

  # Turn on any external equipment.
-system(qq(/usr/bin/mm_external_power_on));
+if (-e q(/usr/bin/mm_external_power_on)
+{
+    system(qq(/usr/bin/mm_external_power_on));
+}

  # Remove the state directory for mm_sleep.
  File::Path::rmtree("/var/lib/mm_sleep.$$");

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