Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 32111 | Differences between
and this patch

Collapse All | Expand All

(-)keymaps (-10 / +22 lines)
Lines 27-41 Link Here
27
	fi
27
	fi
28
	
28
	
29
	ebegin "Loading key mappings"
29
	ebegin "Loading key mappings"
30
	
30
31
	# Enable unicode ...
32
	set -- ${KEYMAP}
33
	if [ "$1" = "-u" ]
34
	then
35
		/usr/bin/kbd_mode -u
36
		KEYMAP="${KEYMAP/-u}"
37
	fi
38
	
39
	# New kbd support ...
31
	# New kbd support ...
40
	if [ -x /bin/loadkeys ]
32
	if [ -x /bin/loadkeys ]
41
	then
33
	then
Lines 43-53 Link Here
43
		
35
		
44
		/bin/loadkeys -q ${WINDOWKEYS_KEYMAP} ${KEYMAP} \
36
		/bin/loadkeys -q ${WINDOWKEYS_KEYMAP} ${KEYMAP} \
45
		                 ${EXTENDED_KEYMAPS} >/dev/null
37
		                 ${EXTENDED_KEYMAPS} >/dev/null
38
		retval=$?
46
	else
39
	else
47
		eend 1 "loadkeys executable not found"
40
		eend 1 "loadkeys executable not found"
48
		return 1
41
		return 1
49
	fi
42
	fi
50
	eend $? "Error loading key mappings"
43
	
44
	# Enable unicode ...
45
	if [ "${UNICODE}" = "true" ]
46
	then
47
		/usr/bin/kbd_mode -u
48
		dumpkeys | loadkeys --unicode 
49
		if [ -e /dev/.devfsd ] || \
50
		   [ -e /dev/.udev -a -d /dev/vc ]
51
		then
52
			device=/dev/vc/
53
		else
54
			device=/dev/tty
55
		fi
56
		for ((i=1; i <= "${RC_TTY_NUMBER}"; i++)); do 
57
			echo -n -e '\033%G' > ${device}${i}
58
		done
59
		KEYMAP="${KEYMAP/-u}"
60
	fi
61
62
	eend ${retval} "Error loading key mappings"
51
}
63
}
52
64
53
65

Return to bug 32111