[26584] in Source-Commits
Re: /svn/athena r25635 - trunk/debathena/scripts/installer
daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Thu Jul 12 09:39:25 2012
Date: Thu, 12 Jul 2012 09:39:22 -0400 (EDT)
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Jonathan D Reed <jdreed@MIT.EDU>
cc: source-commits@MIT.EDU
In-Reply-To: <201207112058.q6BKwpDM016074@drugstore.mit.edu>
Message-ID: <alpine.GSO.1.10.1207120939030.18441@multics.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Huh. I guess if `uname -r` is broken we have bigger problems.
ACK.
-Ben
On Wed, 11 Jul 2012, Jonathan D Reed wrote:
> Author: jdreed
> Date: 2012-07-11 16:58:51 -0400 (Wed, 11 Jul 2012)
> New Revision: 25635
>
> Modified:
> trunk/debathena/scripts/installer/install-debathena.beta.sh
> Log:
> * Cleanup installing.txt
> * Abuse dpkg --compare-versions to determine whether to add the reboot=pci
> hack or not
>
>
> Modified: trunk/debathena/scripts/installer/install-debathena.beta.sh
> ===================================================================
> --- trunk/debathena/scripts/installer/install-debathena.beta.sh 2012-07-11 20:27:27 UTC (rev 25634)
> +++ trunk/debathena/scripts/installer/install-debathena.beta.sh 2012-07-11 20:58:51 UTC (rev 25635)
> @@ -175,7 +175,8 @@
> 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
> +if [ "$(cat /sys/class/dmi/id/product_name)" = "OptiPlex 790" ] && \
> + dpkg --compare-versions "$(uname -r)" ge 3.2~; then
> noacpi=y
> if [ "$category" != "cluster" ]; then
> echo
> @@ -419,6 +420,7 @@
> fi
>
> # Post-install cleanup for cluster systems.
> +rm installing.txt
> if [ "$divertedbg" = "yes" ]; then
> rm -f $bgimage
> if ! dpkg-divert --rename --remove $bgimage; then
>
>