[25993] in Source-Commits

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

/svn/athena r25333 - trunk/debathena/scripts/installer

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Sun Jul 31 14:44:30 2011

Date: Sun, 31 Jul 2011 14:44:17 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201107311844.p6VIiHuq016235@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-07-31 14:44:17 -0400 (Sun, 31 Jul 2011)
New Revision: 25333

Modified:
   trunk/debathena/scripts/installer/install-debathena.beta.sh
Log:
Disable acpi on the 790s so that they can reboot

Modified: trunk/debathena/scripts/installer/install-debathena.beta.sh
===================================================================
--- trunk/debathena/scripts/installer/install-debathena.beta.sh	2011-07-30 20:47:34 UTC (rev 25332)
+++ trunk/debathena/scripts/installer/install-debathena.beta.sh	2011-07-31 18:44:17 UTC (rev 25333)
@@ -103,6 +103,23 @@
     echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" |debconf-set-selections
 fi
 
+if [ "$(cat /sys/class/dmi/id/product_name)" = "OptiPlex 790" ]; then
+    noacpi=y
+    if [ "$category" != "cluster" ]; then
+	echo "The Dell 790 sometimes has problems rebooting.  The best way to"
+	echo "workaround this is to disable ACPI at boot time."
+	ask "Is it ok to do this now? [Y/n] " y
+	if [ y != "$answer" ]; then
+	    noacpi=n
+	fi
+    fi
+    if [ "$noacpi" = "y" ]; then
+	if sed -i -e 's/^GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="acpi=off /' /etc/default/grub; then
+	    update-grub
+	fi
+    fi
+fi
+
 echo "A summary of your choices:"
 echo "  Category: $category"
 echo "  Extra-software package: $csoft"


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