xref: /illumos-gate/usr/src/cmd/kbd/keymap.xml (revision eb9a1df2aeb866bf1de4494433b6d7e5fa07b3ae)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
5
6 CDDL HEADER START
7
8 The contents of this file are subject to the terms of the
9 Common Development and Distribution License (the "License").
10 You may not use this file except in compliance with the License.
11
12 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 or http://www.opensolaris.org/os/licensing.
14 See the License for the specific language governing permissions
15 and limitations under the License.
16
17 When distributing Covered Code, include this CDDL HEADER in each
18 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 If applicable, add the following below this CDDL HEADER, with the
20 fields enclosed by brackets "[]" replaced with your own identifying
21 information: Portions Copyright [yyyy] [name of copyright owner]
22
23 CDDL HEADER END
24
25	NOTE:  This service manifest is not editable; its contents will
26	be overwritten by package or patch operations, including
27	operating system upgrade.  Make customizations in a different
28	file.
29
30	Service manifest for establishing hardware keyboard defaults.
31-->
32
33<service_bundle type='manifest' name='SUNWcsr:keymap'>
34
35<service
36	name='system/keymap'
37	type='service'
38	version='1'>
39
40	<single_instance />
41
42	<dependency
43		name='usr'
44		type='service'
45		grouping='require_all'
46		restart_on='none'>
47		<service_fmri value='svc:/system/filesystem/usr' />
48	</dependency>
49
50	<dependent
51		name='keymap_single-user'
52		grouping='optional_all'
53		restart_on='none'>
54		<service_fmri value='svc:/milestone/single-user' />
55	</dependent>
56
57	<exec_method
58		type='method'
59		name='start'
60		exec='/lib/svc/method/keymap'
61		timeout_seconds='0' />
62
63	<exec_method
64		type='method'
65		name='stop'
66		exec=':true'
67		timeout_seconds='60' />
68
69	<property_group name='startd' type='framework'>
70		<propval name='duration' type='astring'
71			value='transient' />
72	</property_group>
73
74	<instance name='default' enabled='false'>
75		<property_group name='keymap' type='system'>
76			<propval name='keyboard_abort' type='astring' value='enable' />
77			<propval name='keyclick' type='boolean' value='false' />
78			<propval name='repeat_count' type='integer' value='-1' />
79			<propval name='repeat_delay' type='integer' value='500' />
80			<propval name='repeat_rate' type='integer' value='40' />
81			<propval name='layout' type='astring' value='US-English' />
82			<propval name='kbd_beeper_freq' type='integer' value='2000' />
83			<propval name='console_beeper_freq' type='integer' value='900' />
84		</property_group>
85	</instance>
86
87	<stability value='Unstable' />
88
89	<template>
90		<common_name>
91			<loctext xml:lang='C'>keyboard defaults
92				</loctext>
93		</common_name>
94
95		<documentation>
96			<manpage
97				title='kbd'
98				section='1M'
99				manpath='/usr/share/man' />
100		</documentation>
101
102		<pg_pattern name='keymap' type='system'>
103			<description>
104				<loctext xml:lang='C'>
105					Default keyboard configurations
106				</loctext>
107			</description>
108			<prop_pattern name='keyboard_abort' type='astring' required='true'>
109				<description>
110					<loctext xml:lang='C'>
111						The behavior of keyboard abort sequence
112					</loctext>
113				</description>
114				<cardinality min="1" max="1"/>
115			</prop_pattern>
116			<prop_pattern name='keyclick' type='boolean' required='true'>
117				<description>
118					<loctext xml:lang='C'>
119						The keyclick behavior
120					</loctext>
121				</description>
122				<cardinality min="1" max="1"/>
123			</prop_pattern>
124			<prop_pattern name='repeat_delay' type='integer' required='true'>
125				<description>
126					<loctext xml:lang='C'>
127						The autorepeat delay
128					</loctext>
129				</description>
130				<cardinality min="1" max="1"/>
131			</prop_pattern>
132			<prop_pattern name='repeat_rate' type='integer' required='true'>
133				<description>
134					<loctext xml:lang='C'>
135						The autorepeat rate
136					</loctext>
137				</description>
138				<cardinality min="1" max="1"/>
139			</prop_pattern>
140			<prop_pattern name='layout' type='astring' required='true'>
141				<description>
142					<loctext xml:lang='C'>
143						The keyboard layout
144					</loctext>
145				</description>
146				<cardinality min="1" max="1"/>
147			</prop_pattern>
148			<prop_pattern name='kbd_beeper_freq' type='integer' required='true'>
149				<description>
150					<loctext xml:lang='C'>
151						Keyboard beeper frequency
152					</loctext>
153				</description>
154				<cardinality min="1" max="1"/>
155				<constraints>
156					<range min="0" max="32767"/>
157				</constraints>
158			</prop_pattern>
159			<prop_pattern name='console_beeper_freq' type='integer' required='true'>
160				<description>
161					<loctext xml:lang='C'>
162						Console beeper frequency
163					</loctext>
164				</description>
165				<cardinality min="1" max="1"/>
166				<constraints>
167					<range min="0" max="32767"/>
168				</constraints>
169			</prop_pattern>
170		</pg_pattern>
171	</template>
172</service>
173
174</service_bundle>
175