commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] Debian GNU Hurd packaging branch, master, updated. debian/20100829


From: Samuel Thibault
Subject: [SCM] Debian GNU Hurd packaging branch, master, updated. debian/20100829-1-5-gd55c062
Date: Mon, 20 Sep 2010 22:02:31 +0000

The following commit has been merged in the master branch:
commit d55c062f02d059b4d392ef1d5293bbcc9fd4e3c8
Author: Samuel Thibault <address@hidden>
Date:   Tue Sep 21 00:01:56 2010 +0200

    Do not start the Hurd console if the TERM variable is given
    
      * debian/local/runsystem: Do not start the Hurd console if the TERM 
variable
        is given.  Should permit mach-console install for better debugging as 
well
        as Xen or sub-hurd support.

diff --git a/debian/changelog b/debian/changelog
index 50ca3f3..ac323f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,12 +3,15 @@ hurd (20100829-2) unreleased; urgency=low
   [ Samuel Thibault ]
   * debian/control: Depend on gcc-4.4 instead of gcc-4.3. Thanks Emilio!
   * debian/rules: Fix back debugging symbols into the hurd-dbg package.
+  * debian/local/runsystem: Do not start the Hurd console if the TERM variable
+    is given.  Should permit mach-console install for better debugging as well
+    as Xen or sub-hurd support.
 
   [ Jeremie Koenig ]
   * debian/patches/libpthread_sigmask.patch: New patch to fix missed signals
     when using pthread_sigmask.
 
- -- Samuel Thibault <address@hidden>  Fri, 03 Sep 2010 02:18:29 +0200
+ -- Samuel Thibault <address@hidden>  Mon, 20 Sep 2010 23:55:18 +0200
 
 hurd (20100829-1) unstable; urgency=low
 
diff --git a/debian/local/runsystem b/debian/local/runsystem
index 150d4c9..daff8a0 100755
--- a/debian/local/runsystem
+++ b/debian/local/runsystem
@@ -8,22 +8,6 @@ export PATH
 
 /hurd/mach-defpager
 
-# Touch the first tty so that the Hurd console is certain to pick it
-# and not some random other tty.
-sleep 1
-touch /dev/tty1
-
-echo -n "Starting the Hurd console..."
-console -d vga -g -d pc_kbd -c /dev/vcs &
-sleep 1
-
-# Switch over
-exec < /dev/tty1 > /dev/tty1 2>&1
-echo "Console started."
-
-# Set the console device used by /sbin/reopen-console
-echo /dev/tty1 >/var/run/console-device
-
 # Get all kernel parameters that can be exported as environment variables
 envvars="$(echo $* | tr ' ' '\012' | egrep '^[-_/[:alnum:]]+=.*$')"
 
@@ -42,8 +26,33 @@ for i in $envvars ; do
         noshell=*)
             sed -i '/^tty[12]/s/^/#/' /etc/inittab
             ;;
+        TERM=*)
+            term=yes
+            ;;
     esac
 done
 
+if [ "$term" != yes ]
+then
+        # No terminal type set, assume we can start the Hurd console
+
+        # Touch the first tty so that the Hurd console is certain to pick it
+        # and not some random other tty.
+        sleep 1
+        touch /dev/tty1
+
+        echo -n "Starting the Hurd console..."
+        console -d vga -g -d pc_kbd -c /dev/vcs &
+        sleep 1
+
+        # Switch over
+        envvars="$envvars TERM=hurd"
+        exec < /dev/tty1 > /dev/tty1 2>&1
+        echo "Console started."
+
+        # Set the console device used by /sbin/reopen-console
+        echo /dev/tty1 >/var/run/console-device
+fi
+
 # Preset the terminal type for /lib/debian-installer/detect-console
-eval exec env - $envvars TERM=hurd TERM_TYPE=virtual $init
+eval exec env - $envvars TERM_TYPE=virtual $init

-- 
Debian GNU Hurd packaging



reply via email to

[Prev in Thread] Current Thread [Next in Thread]