<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,7 @@
 # echo $PREFMODE
 # exit 0
 
+VIDEOSTATEFILE=&quot;$HOME/.var/video_state&quot;
 
 # {{{ lvds 
 lvds () {
@@ -108,20 +109,24 @@ setup () {
 }
 # }}}
 
+write_state() {
+    echo &quot;$1&quot; &gt; $VIDEOSTATEFILE
+    exit 1
+}
+
 if [[ &quot;$1&quot; == &quot;--setup&quot; ]] ; then 
-  setup
-  exit 0
+  setup|| write_state &quot;error&quot;
 elif [[ &quot;$1&quot; == &quot;--sync&quot; ]] ; then
-  syncmaster
-  exit 0
+  syncmaster|| write_state &quot;error&quot;
 elif [[ &quot;$1&quot; == &quot;--soyo&quot; ]] ; then
-  soyo
-  exit 0
+  soyo || write_state &quot;error&quot;
 elif [[ &quot;$1&quot; == &quot;--off&quot; ]] ; then
-  off
-  exit 0 
+  off || write_state &quot;error&quot;
 else
-  lvds
+  lvds || write_state &quot;error&quot;
 fi
 
+write_state $( echo $1 | tr -d '-')
+exit 0 
+
 # vim:set filetype=sh fdm=marker tabstop=4 shiftwidth=4 expandtab smarttab autoindent smartindent: </diff>
      <filename>.bin/stupid.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9089dea98e2794783e3071f314e744682231c657</id>
    </parent>
  </parents>
  <author>
    <name>perry</name>
    <email>perry.hargrave@gmail.com</email>
  </author>
  <url>http://github.com/bioe007/bioe007configs/commit/cc1aeb50d3a29cc778e8ec1e9f4f1473b9d13da0</url>
  <id>cc1aeb50d3a29cc778e8ec1e9f4f1473b9d13da0</id>
  <committed-date>2009-10-07T10:52:33-07:00</committed-date>
  <authored-date>2009-10-07T10:52:33-07:00</authored-date>
  <message>create a file to track the state of outputs</message>
  <tree>2e5964a8a8e30988715934a77921e6620bfa0407</tree>
  <committer>
    <name>perry</name>
    <email>perry.hargrave@gmail.com</email>
  </committer>
</commit>
