[patch] add GNU/kFreeBSD detect-console
This patch adds GNU/kFreeBSD /lib/debian-installer/detect-console.
It needs the BusyBox "tty" command (it builds on GNU/kFreeBSD i386
with no patches more needed).
Please carefully review this, because I used it only /dev/ttyv console.
Cheers,
Luca Favatella
Index: debian/changelog
===================================================================
--- debian/changelog (.../trunk/packages/rootskel) (revision 59604)
+++ debian/changelog (.../branches/d-i/kfreebsd/packages/rootskel) (revision 59604)
@@ -6,6 +6,7 @@
[ Luca Favatella ]
* Generalize code splitting Linux specific stuff.
* GNU/kFreeBSD does not need klibc and udev.
+ * Add GNU/kFreeBSD /lib/debian-installer/detect-console.
[ Otavio Salvador ]
* Unix socket support is built-in since long ago so we don't need to
Index: src/lib/debian-installer/detect-console-kfreebsd
===================================================================
--- src/lib/debian-installer/detect-console-kfreebsd (.../trunk/packages/rootskel) (revision 0)
+++ src/lib/debian-installer/detect-console-kfreebsd (.../branches/d-i/kfreebsd/packages/rootskel) (revision 59604)
@@ -0,0 +1,15 @@
+if [ -z "$TERM_TYPE" ]; then
+ case `tty` in
+ /dev/console|/dev/cuaa[0-f]*)
+ TERM_TYPE=serial
+ ;;
+ /dev/ttyv[0-f]*)
+ TERM_TYPE=virtual
+ ;;
+ /dev/ttyp[0-f]*)
+ TERM_TYPE=pts
+ ;;
+ esac
+fi
+
+export TERM_TYPE
Reply to: