[Glibc-bsd-commits] r1520 - trunk/web/ging

Robert Millan rmh at costa.debian.org
Fri Apr 28 20:15:59 UTC 2006


Author: rmh
Date: 2006-04-28 20:15:59 +0000 (Fri, 28 Apr 2006)
New Revision: 1520

Modified:
   trunk/web/ging/startup
Log:
Cleanup stdio startup.

Modified: trunk/web/ging/startup
===================================================================
--- trunk/web/ging/startup	2006-04-28 18:13:49 UTC (rev 1519)
+++ trunk/web/ging/startup	2006-04-28 20:15:59 UTC (rev 1520)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # IMPORTANT:
 # don't use <<EOF anywhere in this file.  Bash would attempt to create a
-# tempfile and, since our /tmp is readonly, would fail.
+# tempfile and, since our /tmp is readonly, fail.
 
 ging_msg ()
   {
@@ -12,12 +12,11 @@
     echo -en "\x1B[0m"
   }
 
-# if we don't have proper std streams, get some
-if ! ging_msg "@distribution@ @version@ starting" ; then
-  export TERM=cons25
-  exec $0 $@ < /dev/console > /dev/console 2> /dev/console
-fi
+export TERM=cons25
+exec < /dev/console > /dev/console 2> /dev/console
 
+ging_msg "@distribution@ @version@ starting"
+
 # do this as soon as we have stdio
 set -e
 trap "echo \"Something wicked happened.  Press enter for rescue shell.\" ; read ; bash" 0




More information about the Glibc-bsd-commits mailing list