#!/system/bin/sh
export PATH=/system/xbin:$PATH
ln -s /system/usr/keychars/qwerty.kcm.bin /system/usr/keychars/qtouch-touchscreen.kcm.bin
ln -s /system/usr/keylayout/qwerty.kl /system/usr/keylayout/qtouch-touchscreen.kl

if [ -e /system/usr/keylayout/sholes-keypad.kl ]; then
	return
fi

if [ -e /proc/device-tree/System@0/Keypad@0/name ]; then
	keypad_name=`cat /proc/device-tree/System@0/Keypad@0/name`
	if [ "x$keypad_name" != "x" ]; then
		ln -s /system/usr/keylayout/$keypad_name.kl /system/usr/keylayout/sholes-keypad.kl
		ln -s /system/usr/keychars/$keypad_name.kcm.bin /system/usr/keychars/sholes-keypad.kcm.bin
	fi
fi
