[26029] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25353 - trunk/debathena/config/auto-update/debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Wed Aug 3 15:01:10 2011

Date: Wed, 3 Aug 2011 15:01:04 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201108031901.p73J1426023369@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-08-03 15:01:04 -0400 (Wed, 03 Aug 2011)
New Revision: 25353

Modified:
   trunk/debathena/config/auto-update/debian/athena-auto-upgrade
Log:
Don't actually wave dead chickens in debug mode

Modified: trunk/debathena/config/auto-update/debian/athena-auto-upgrade
===================================================================
--- trunk/debathena/config/auto-update/debian/athena-auto-upgrade	2011-08-03 17:57:09 UTC (rev 25352)
+++ trunk/debathena/config/auto-update/debian/athena-auto-upgrade	2011-08-03 19:01:04 UTC (rev 25353)
@@ -177,9 +177,13 @@
 dead_chicken() {
   debug "Waving dead chicken..."
   # Run the video card's POST to reset it
-  vbetool post
+  $MAYBE vbetool post
   # Disable the framebuffer, falling back to VGA
-  echo 0 > /sys/class/vtconsole/vtcon1/bind
+  if [ $DEBUG -eq 1 ]; then
+      echo "Would echo 0 > /sys/class/vtconsole/vtcon1/bind"
+  else
+      echo 0 > /sys/class/vtconsole/vtcon1/bind
+  fi
 }
 product_name="$(cat /sys/class/dmi/id/product_name | sed -e 's/[ ]*$//')"
 # Yes, really.  The actual value of product_name on the Vostro is:


home help back first fref pref prev next nref lref last post