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

Bug#808830: QNAP LCD support in installer



Package: flash-kernel-installer
Tags: patch
Severity: wishlist
Control: submitter Martin Michlmayr <tbm@cyrius.com>

On Tue, 2015-12-22 at 11:23 -0800, Martin Michlmayr wrote:
> d-i doesn't show the IP address of the installer on the LCD at the
> moment.  I believe the attached patch should work.  Maybe you can test
> it on your TS-419 some time (maybe once with the serial attached, and
> once without, so you can test both scenarios).

Thanks, looks good on first glance, stashing in the BTS for safekeeping
until I get around to it.

Ian.
diff --git a/debian/network-console.postinst b/debian/network-console.postinst
index f164446..9646c56 100755
--- a/debian/network-console.postinst
+++ b/debian/network-console.postinst
@@ -123,6 +123,10 @@ case "$ARCHDETECT" in
 	if type qcommand >/dev/null 2>&1; then
 		qcommand statusled greenon
 		qcommand buzzer short
+		# Only some devices have an LCD, so don't fail if the
+		# commands don't work
+		qcommand lcd-line0 "SSH to installer" || true
+		qcommand lcd-line1 "@$IPADDR" || true
 	fi
 	# LaCie Network Space v2 (and parents) and d2 Network v2
 	for led_dev in ns_v2 d2net_v2; do

Reply to: