Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2014 18:39:36 +0200
From:      Gyrd Thane Lange <gyrd-se@thanelange.no>
To:        freebsd-current@freebsd.org
Subject:   [patch] syscons/vt keymap: Norwegian country code conflicts with default value
Message-ID:  <20140921183936.03617590@onyx.thanelange.no>

next in thread | raw e-mail | index | archive | help
--MP_/P1rm_rClhgPAl2o3+cdNbqO
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

Recent changes in keymap namning for syscons/vt to use shorter names
has exposed a conflict with the value "no" both used as country code
for Norway and as a default value indicating that no keymap is set.

The attached patch proposes to use "" (empty string) as default value
instead.

Also available here:
http://onyx.thanelange.no/freebsd/patches/syscons.patch

Best regards
Gyrd ^_^

--MP_/P1rm_rClhgPAl2o3+cdNbqO
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=syscons.patch

Index: etc/defaults/rc.conf
===================================================================
--- etc/defaults/rc.conf	(revision 271880)
+++ etc/defaults/rc.conf	(working copy)
@@ -531,7 +531,7 @@
 ##############################################################
 
 keyboard=""		# keyboard device to use (default /dev/kbd0).
-keymap="NO"		# keymap in /usr/share/{syscons,vt}/keymaps/* (or NO).
+keymap=""		# keymap in /usr/share/{syscons,vt}/keymaps/* (or empty).
 keyrate="NO"		# keyboard rate to: slow, normal, fast (or NO).
 keybell="NO" 		# See kbdcontrol(1) for options.  Use "off" to disable.
 keychange="NO"		# function keys default values (or NO).
Index: etc/rc.d/syscons
===================================================================
--- etc/rc.d/syscons	(revision 271880)
+++ etc/rc.d/syscons	(working copy)
@@ -167,7 +167,7 @@
 	# keymap
 	#
 	case ${keymap} in
-	[Nn][Oo] | '')
+	'')
 		;;
 	*)
 		sc_init

--MP_/P1rm_rClhgPAl2o3+cdNbqO--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140921183936.03617590>