#!/bin/sh # on PPC using linux keycodes, map AltGr and Compose to Apple, Shift-Apple # Copyright (C) 2002 by Stew Benedict # MandrakeSoft. Redistribution of this file is permitted under the # terms of the GNU Public License (GPL) ARCH=`uname -m` if [ "$ARCH" = "ppc" ];then KEYCODE=`grep "dev.mac_hid.keyboard_sends_linux_keycodes" /etc/sysctl.conf | awk '{print $3}'` if [ "$KEYCODE" = "1" ];then xmodmap -e "keycode 115 = Mode_switch Multi_key" fi fi