Bug#605777: workaround for backspace key deletes forwards on the kFreeBSD console
On 2011-01-18 09:17 +0100, Petr Salinger wrote:
>>> The integration should be into /etc/init.d/kbdcontrol,
>>> by adding two targets, like keymap-native and keymap-debian.
>>>
>>> May be it can be run even semi-automatically, by
>>> detecting whether the /etc/inittab uses cons25 or cons25-debian
>>> and noop or alter keymap.
>>
>> Yes, I like the latter (auto detection) part. Another solution could be a
>> debconf question in kbdcontrol (though it might be too late for this).
>
> Attached is the proposed new /etc/init.d/kbdcontrol.
> The current default is
> FLAVOUR=auto
>
> Should be the default "auto" or "native" ?
>
> Is there still a time to do freebsd-utils upload ?
> The only change against current one would be the new
> /etc/init.d/kbdcontrol script.
>
> Cheers
> Petr
>
> #! /bin/sh
> ### BEGIN INIT INFO
> # Provides: kbdcontrol
> # Required-Start: $local_fs $remote_fs
> # Required-Stop:
> # Default-Start: S
> # Default-Stop:
> # Short-Description: Set keymap
> # Description: Set the Console keymap
> ### END INIT INFO
> #
> # skeleton example file to build /etc/init.d/ scripts.
> # This file should be used to construct scripts for /etc/init.d.
> #
> # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
> # Modified for Debian
> # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
> #
> # Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
> #
>
> set -e
>
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> which kbdcontrol >/dev/null
Please add " || exit 0" to not fail if kbdcontrol is removed but not
purged.
> # in general, keymap layout can be
> # native: the plain FreeBSD/cons25 layout
> # debian: the Debian Policy 9.8 (Keyboard configuration) conforming, aka cons25-debian
> # auto: scan /etc/inittab and guess the right one
> FLAVOUR=auto
>
> # for auto do the guess
> if [ $FLAVOUR = auto ]
> then
> if grep -q -e "respawn:/sbin/getty.*cons25-debian" /etc/inittab
This will match lines that are commented out.
Cheers,
Sven
Reply to: