On Tue, 27 Apr 2010, David Walker wrote:

[...]
#!/bin/sh

      DEVCLASS=$1
      DEVNAME=$2

      case $DEVNAME in
              wskbd0)
              kbd us.dvorak
              ;;
      esac

Make the script executable.
Don't forget to switch on hotplug in rc.conf.local:
hotplugd_flags=""

Hi,

instead of hardcoding your layout into the script a more universal solution would be what rc-scripts do:

if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then
        kbd `cat /etc/kbdtype`
fi

--
Antti Harri

Reply via email to