Re: [RFC] Proposed transition plan for adb -> linux keycodes
On Mon, Jul 02, 2001 at 04:45:56AM -0800, Ethan Benson wrote:
>
> One other possibility is have Option 1 also create a new temporary
> initscript with the following and link it to 06 in runlevel S:
>
> /etc/init.d/keycode-fix.sh
> #!/bin/sh
>
> if [ "$(/sbin/sysctl -n dev/mac_hid/keyboard_sends_linux_keycodes)" = 0 ] ; then
> echo -n "WARNING: Fixing kernel keycodes...
> /sbin/sysctl -w dev/mac_hid/keyboard_sends_linux_keycodes=1 >/dev/null
> echo "done."
> elif [ "$(/sbin/sysctl -n dev/mac_hid/keyboard_sends_linux_keycodes)" = 1 ] ; then
> rm -f /etc/rcS.d/S06keycode-fix.sh 2> /dev/null
> rm -f /etc/init.d/keycode-fix.sh 2> /dev/null
> fi
>
> this script would fix the sysctl until the user fixed the kernel at
> which point it would delete itself as its no longer needed. i
> personally find this rather hideous but it would save the user some
> hassle if they forget to fix the kernel after fixing the keymap... of
> course this would not work in the next scenario.
I would vote for this hideous solution, since I would hate to have someone
end up being unable to use console after upgrading to stable. That would
be bad.
--
David Roundy
http://civet.berkeley.edu/droundy/
Reply to: