summaryrefslogtreecommitdiff
blob: 6a425ab4fbff677f8c429f884e86d02ea85ae180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
# Azamat H. Hackimov <azamat.hackimov@gmail.com>, 2009, 2010, 2011.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2010-10-22 00:40+0600\n"
"PO-Revision-Date: 2011-10-10 01:57+0500\n"
"Last-Translator: Vladimir <vokalashnikov@gmail.com>\n"
"Language-Team: Russian <gentoo-doc-ru@gentoo.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ru\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.0\n"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(abstract):11
msgid "If you're feeling adventurous, you can add your own functions to networking."
msgstr "Если вы ищете приключений, можете подключить к сети свои собственные функции."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(version):15
msgid "8.1"
msgstr "8.1"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(date):16
msgid "2010-05-14"
msgstr "2010-05-14"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(title):19
msgid "Standard function hooks"
msgstr "Стандартные функции-обработчики"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):22
msgid "Four functions can be defined in <path>/etc/conf.d/net</path> which will be called surrounding the <c>start</c>/<c>stop</c> operations. The functions are called with the interface name first so that one function can control multiple adapters."
msgstr "В файле <path>/etc/conf.d/net</path> можно определить четыре функции, которые вызываются при операциях запуска (<c>start</c>) и останова (<c>stop</c>). При вызове, первым параметром этим функциям передается название интерфейса, так что одна и та же функция может управлять несколькими адаптерами."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):29
msgid "The return values for the <c>preup()</c> and <c>predown()</c> functions should be 0 (success) to indicate that configuration or deconfiguration of the interface can continue. If <c>preup()</c> returns a non-zero value, then interface configuration will be aborted. If <c>predown()</c> returns a non-zero value, then the interface will not be allowed to continue deconfiguration."
msgstr "Для указания на то, что запуск или останов интерфейса может продолжаться, возвращаемое значение функций <c>preup()</c> и <c>predown()</c> должно быть нулевым (успешным). Если <c>preup()</c> возвращает ненулевое значение, запуск интерфейса прерывается. Если <c>predown()</c> возвращает ненулевое значение, не допускается продолжение останова интерфейса."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):37
msgid "The return values for the <c>postup()</c> and <c>postdown()</c> functions are ignored since there's nothing to do if they indicate failure."
msgstr "Возвращаемое значение функций <c>postup()</c> и <c>postdown()</c> игнорируется, так как в случае ошибки все равно делать нечего."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):42
msgid "<c>${IFACE}</c> is set to the interface being brought up/down. <c>${IFVAR}</c> is <c>${IFACE}</c> converted to variable name bash allows."
msgstr "<c>${IFACE}</c> присваивается название запускаемого/останавливаемого интерфейса. <c>${IFVAR}</c> — это значение <c>${IFACE}</c>, преобразованное в имя переменной, разрешенное в bash."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(pre:caption):47
msgid "pre/post up/down function examples in /etc/conf.d/net"
msgstr "Примеры функций, вызываемых до и после запуска или останова интерфейса"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(pre):47
#, no-wrap
msgid ""
"\n"
"preup() {\n"
"  <comment># Test for link on the interface prior to bringing it up.  This\n"
"  # only works on some network adapters and requires the ethtool\n"
"  # package to be installed.</comment>\n"
"  if ethtool ${IFACE} | grep -q 'Link detected: no'; then\n"
"    ewarn \"No link on ${IFACE}, aborting configuration\"\n"
"    return 1\n"
"  fi\n"
"\n"
"  <comment># Remember to return 0 on success</comment>\n"
"  return 0\n"
"}\n"
"\n"
"predown() {\n"
"  <comment># The default in the script is to test for NFS root and disallow\n"
"  # downing interfaces in that case.  Note that if you specify a\n"
"  # predown() function you will override that logic.  Here it is, in\n"
"  # case you still want it...</comment>\n"
"  if is_net_fs /; then\n"
"    eerror \"root filesystem is network mounted -- can't stop ${IFACE}\"\n"
"    return 1\n"
"  fi\n"
"\n"
"  <comment># Remember to return 0 on success</comment>\n"
"  return 0\n"
"}\n"
"\n"
"postup() {\n"
"  <comment># This function could be used, for example, to register with a\n"
"  # dynamic DNS service.  Another possibility would be to\n"
"  # send/receive mail once the interface is brought up.</comment>\n"
"       return 0\n"
"}\n"
"\n"
"postdown() {\n"
"  <comment># This function is mostly here for completeness... I haven't\n"
"  # thought of anything nifty to do with it yet ;-)</comment>\n"
"  return 0\n"
"}\n"
msgstr ""
"\n"
"preup() {\n"
"  <comment># Проверка соединения интерфейса перед его запуском. Она\n"
"  # работает лишь с некоторыми сетевыми адаптерами и требует наличия\n"
"  #  ethtool.</comment>\n"
"  if ethtool ${IFACE} | grep -q 'Link detected: no'; then\n"
"    ewarn \"No link on ${IFACE}, aborting configuration\"\n"
"    return 1\n"
"  fi\n"
"\n"
"  <comment># Не забываем вернуть 0 при успехе</comment>\n"
"  return 0\n"
"}\n"
"\n"
"predown() {\n"
"  <comment># Назначение этого сценария - проверить наличие корня NFS\n"
"  # и в этом случае предотвратить останов интерфейсов. Заметьте, что\n"
"  # определяя функцию predown(), вы отменяете существующую логику.\n"
"  # Вот она, на случай если она вам все еще нужна...</comment>\n"
"  if is_net_fs /; then\n"
"    eerror \"root filesystem is network mounted -- can't stop ${IFACE}\"\n"
"    return 1\n"
"  fi\n"
"\n"
"  <comment># Не забываем вернуть 0 при успехе</comment>\n"
"  return 0\n"
"}\n"
"\n"
"postup() {\n"
"  <comment># Эту функцию можно использовать, например, для регистрации в\n"
"  # службе динамического DNS. Другой пример - отправка/прием почты после\n"
"  # запуска интерфейса.</comment>\n"
"       return 0\n"
"}\n"
"\n"
"postdown() {\n"
"  <comment># Эта функция приводится в основном для полноты... Я не знаю,\n"
"  # что бы такое ценное в нее поместить ;-)</comment>\n"
"  return 0\n"
"}\n"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(note):89
#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(note):166
msgid "For more information on writing your own functions, please read <path>/etc/conf.d/net.example</path>."
msgstr "За дополнительной информацией по написанию собственных функций, обратитесь к файлу <path>/etc/conf.d/net.example</path>."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(title):97
msgid "Wireless Tools function hooks"
msgstr "Функции-обработчики беспроводных инструментов"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(note):100
msgid "This will not work with WPA Supplicant - but the <c>${ESSID}</c> and <c>${ESSIDVAR}</c> variables are available in the <c>postup()</c> function."
msgstr "Это не работает вместе с WPA Supplicant, но переменные <c>${ESSID}</c> и <c>${ESSIDVAR}</c> доступны в функции <c>postup()</c>."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):105
msgid "Two functions can be defined in <path>/etc/conf.d/net</path> which will be called surrounding the associate function. The functions are called with the interface name first so that one function can control multiple adapters."
msgstr "Можно определить две функции, вызываемые до и после функции подключения (associate). При вызове, первым параметром этим функциям передается название интерфейса, так что одна и та же функция может управлять несколькими адаптерами."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):111
msgid "The return values for the <c>preassociate()</c> function should be 0 (success) to indicate that configuration or deconfiguration of the interface can continue. If <c>preassociate()</c> returns a non-zero value, then interface configuration will be aborted."
msgstr "Для указания на то, что запуск или останов интерфейса можно продолжать, возвращаемое значение функции <c>preassociate()</c> должно быть нулевым (успешным). Если <c>preassociate()</c> возвращает ненулевое значение, запуск интерфейса прерывается."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):118
msgid "The return value for the <c>postassociate()</c> function is ignored since there's nothing to do if it indicates failure."
msgstr "Возвращаемое значение функции <c>postassociate()</c> игнорируется, так как в случае ошибке все равно делать нечего."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):123
msgid "<c>${ESSID}</c> is set to the exact ESSID of the AP you're connecting to. <c>${ESSIDVAR}</c> is <c>${ESSID}</c> converted to a variable name bash allows."
msgstr "<c>${ESSID}</c> присваивается точный ESSID точки доступа, к которой вы подключаетесь. <c>${ESSIDVAR}</c> — это <c>${ESSID}</c>, преобразованный в имя переменной, разрешенное в bash."

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(pre:caption):128
msgid "pre/post association functions in /etc/conf.d/net"
msgstr "Пример функций, вызываемых до и после активации беспроводного соединения в /etc/conf.d/net"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(pre):128
#, no-wrap
msgid ""
"\n"
"preassociate() {\n"
"  <comment># The below adds two configuration variables leap_user_ESSID\n"
"  # and leap_pass_ESSID. When they are both configured for the ESSID\n"
"  # being connected to then we run the CISCO LEAP script</comment>\n"
"\n"
"  local user pass\n"
"  eval user=\\\"\\$\\{leap_user_${ESSIDVAR}\\}\\\"\n"
"  eval pass=\\\"\\$\\{leap_pass_${ESSIDVAR}\\}\\\"\n"
"\n"
"  if [[ -n ${user} &amp;&amp; -n ${pass} ]]; then\n"
"    if [[ ! -x /opt/cisco/bin/leapscript ]]; then\n"
"      eend \"For LEAP support, please emerge net-misc/cisco-aironet-client-utils\"\n"
"      return 1\n"
"    fi\n"
"    einfo \"Waiting for LEAP Authentication on \\\"${ESSID//\\\\\\\\//}\\\"\"\n"
"    if /opt/cisco/bin/leapscript ${user} ${pass} | grep -q 'Login incorrect'; then\n"
"      ewarn \"Login Failed for ${user}\"\n"
"      return 1\n"
"    fi\n"
"  fi\n"
"\n"
"  return 0\n"
"}\n"
"\n"
"postassociate() {\n"
"  <comment># This function is mostly here for completeness... I haven't\n"
"  # thought of anything nifty to do with it yet ;-)</comment>\n"
"\n"
"  return 0\n"
"}\n"
msgstr ""
"\n"
"preassociate() {\n"
"  <comment># Ниже добавляются две конфигурационные переменные,\n"
"  # leap_user_ESSID и leap_pass_ESSID. Когда они обе настроены на\n"
"  # подключаемый ESSID, мы запускаем сценарий CISCO LEAP</comment>\n"
"\n"
"  local user pass\n"
"  eval user=\\\"\\$\\{leap_user_${ESSIDVAR}\\}\\\"\n"
"  eval pass=\\\"\\$\\{leap_pass_${ESSIDVAR}\\}\\\"\n"
"\n"
"  if [[ -n ${user} &amp;&amp; -n ${pass} ]]; then\n"
"    if [[ ! -x /opt/cisco/bin/leapscript ]]; then\n"
"      eend \"For LEAP support, please emerge net-misc/cisco-aironet-client-utils\"\n"
"      return 1\n"
"    fi\n"
"    einfo \"Waiting for LEAP Authentication on \\\"${ESSID//\\\\\\\\//}\\\"\"\n"
"    if /opt/cisco/bin/leapscript ${user} ${pass} | grep -q 'Login incorrect'; then\n"
"      ewarn \"Login Failed for ${user}\"\n"
"      return 1\n"
"    fi\n"
"  fi\n"
"\n"
"  return 0\n"
"}\n"
"\n"
"postassociate() {\n"
"  <comment># Эта функция приводится в основном для полноты... Я не знаю,  # что бы такое ценное в нее поместить ;-)</comment>\n"
"\n"
"  return 0\n"
"}\n"

#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(note):161
msgid "<c>${ESSID}</c> and <c>${ESSIDVAR}</c> are unavailable in <c>predown()</c> and <c>postdown()</c> functions."
msgstr "<c>${ESSID}</c> и <c>${ESSIDVAR}</c> недоступны в функциях <c>predown()</c> и <c>postdown()</c>."

#. Place here names of translator, one per line. Format should be NAME; ROLE;
#. E-MAIL
#: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(None):0
msgid "translator-credits"
msgstr ""
"Азамат Хакимов; переводчик, редактор перевода; azamat.hackimov@gmail.com\n"
"Алексей Чумаков; переводчик; achumakov@gentoo.org"