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

Bug#403031: proposed patch to clean the finish-install serial console detection.



Package: finish-install
Version: 2.6
Tags: patch
Followup-For: Bug #403031


Please find attached a patch which does the finish-install detection of a
serial console, based on what was done in rootskel/detect-linux-console.

Friendly,

Sven Luther

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Index: debian/changelog
===================================================================
--- debian/changelog	(révision 43358)
+++ debian/changelog	(copie de travail)
@@ -1,3 +1,11 @@
+finish-install (2.7) UNRELEASED; urgency=low
+
+  [ Sven Luther ]
+  * Added check for TERM_TYPE instead of explicit console check, since we
+    already do this detection in rootskel/detect-console.
+
+ -- Sven Luther <luther@debian.org>  Sat, 16 Dec 2006 00:24:44 +0100
+
 finish-install (2.6) unstable; urgency=low
 
   * 90console: [powerpc64] Added support for hvc* and hvsi* serial consoles.
Index: finish-install.d/90console
===================================================================
--- finish-install.d/90console	(révision 43358)
+++ finish-install.d/90console	(copie de travail)
@@ -15,8 +15,8 @@
 rawconsole=${rawconsole#/dev/}
 console=${console#/dev/}
 
-case "$console" in
-    ttyS*|hvc*|hvsi*)
+case "$TERM_TYPE" in
+    serial)
 	log "Configuring /etc/inittab for serial console"
 	consoletype=${console%%[0-9]*}
 	ttyline=${console#$consoletype}

Reply to: