# Azamat H. Hackimov , 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 \n" "Language-Team: Russian \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 /etc/conf.d/net which will be called surrounding the start/stop operations. The functions are called with the interface name first so that one function can control multiple adapters." msgstr "В файле /etc/conf.d/net можно определить четыре функции, которые вызываются при операциях запуска (start) и останова (stop). При вызове, первым параметром этим функциям передается название интерфейса, так что одна и та же функция может управлять несколькими адаптерами." #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):29 msgid "The return values for the preup() and predown() functions should be 0 (success) to indicate that configuration or deconfiguration of the interface can continue. If preup() returns a non-zero value, then interface configuration will be aborted. If predown() returns a non-zero value, then the interface will not be allowed to continue deconfiguration." msgstr "Для указания на то, что запуск или останов интерфейса может продолжаться, возвращаемое значение функций preup() и predown() должно быть нулевым (успешным). Если preup() возвращает ненулевое значение, запуск интерфейса прерывается. Если predown() возвращает ненулевое значение, не допускается продолжение останова интерфейса." #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):37 msgid "The return values for the postup() and postdown() functions are ignored since there's nothing to do if they indicate failure." msgstr "Возвращаемое значение функций postup() и postdown() игнорируется, так как в случае ошибки все равно делать нечего." #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):42 msgid "${IFACE} is set to the interface being brought up/down. ${IFVAR} is ${IFACE} converted to variable name bash allows." msgstr "${IFACE} присваивается название запускаемого/останавливаемого интерфейса. ${IFVAR} — это значение ${IFACE}, преобразованное в имя переменной, разрешенное в 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" " # 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.\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" " # Remember to return 0 on success\n" " return 0\n" "}\n" "\n" "predown() {\n" " # 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...\n" " if is_net_fs /; then\n" " eerror \"root filesystem is network mounted -- can't stop ${IFACE}\"\n" " return 1\n" " fi\n" "\n" " # Remember to return 0 on success\n" " return 0\n" "}\n" "\n" "postup() {\n" " # 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.\n" " return 0\n" "}\n" "\n" "postdown() {\n" " # This function is mostly here for completeness... I haven't\n" " # thought of anything nifty to do with it yet ;-)\n" " return 0\n" "}\n" msgstr "" "\n" "preup() {\n" " # Проверка соединения интерфейса перед его запуском. Она\n" " # работает лишь с некоторыми сетевыми адаптерами и требует наличия\n" " # ethtool.\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" " # Не забываем вернуть 0 при успехе\n" " return 0\n" "}\n" "\n" "predown() {\n" " # Назначение этого сценария - проверить наличие корня NFS\n" " # и в этом случае предотвратить останов интерфейсов. Заметьте, что\n" " # определяя функцию predown(), вы отменяете существующую логику.\n" " # Вот она, на случай если она вам все еще нужна...\n" " if is_net_fs /; then\n" " eerror \"root filesystem is network mounted -- can't stop ${IFACE}\"\n" " return 1\n" " fi\n" "\n" " # Не забываем вернуть 0 при успехе\n" " return 0\n" "}\n" "\n" "postup() {\n" " # Эту функцию можно использовать, например, для регистрации в\n" " # службе динамического DNS. Другой пример - отправка/прием почты после\n" " # запуска интерфейса.\n" " return 0\n" "}\n" "\n" "postdown() {\n" " # Эта функция приводится в основном для полноты... Я не знаю,\n" " # что бы такое ценное в нее поместить ;-)\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 /etc/conf.d/net.example." msgstr "За дополнительной информацией по написанию собственных функций, обратитесь к файлу /etc/conf.d/net.example." #: ../../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 ${ESSID} and ${ESSIDVAR} variables are available in the postup() function." msgstr "Это не работает вместе с WPA Supplicant, но переменные ${ESSID} и ${ESSIDVAR} доступны в функции postup()." #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):105 msgid "Two functions can be defined in /etc/conf.d/net 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 preassociate() function should be 0 (success) to indicate that configuration or deconfiguration of the interface can continue. If preassociate() returns a non-zero value, then interface configuration will be aborted." msgstr "Для указания на то, что запуск или останов интерфейса можно продолжать, возвращаемое значение функции preassociate() должно быть нулевым (успешным). Если preassociate() возвращает ненулевое значение, запуск интерфейса прерывается." #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):118 msgid "The return value for the postassociate() function is ignored since there's nothing to do if it indicates failure." msgstr "Возвращаемое значение функции postassociate() игнорируется, так как в случае ошибке все равно делать нечего." #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(p):123 msgid "${ESSID} is set to the exact ESSID of the AP you're connecting to. ${ESSIDVAR} is ${ESSID} converted to a variable name bash allows." msgstr "${ESSID} присваивается точный ESSID точки доступа, к которой вы подключаетесь. ${ESSIDVAR} — это ${ESSID}, преобразованный в имя переменной, разрешенное в 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" " # 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\n" "\n" " local user pass\n" " eval user=\\\"\\$\\{leap_user_${ESSIDVAR}\\}\\\"\n" " eval pass=\\\"\\$\\{leap_pass_${ESSIDVAR}\\}\\\"\n" "\n" " if [[ -n ${user} && -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" " # This function is mostly here for completeness... I haven't\n" " # thought of anything nifty to do with it yet ;-)\n" "\n" " return 0\n" "}\n" msgstr "" "\n" "preassociate() {\n" " # Ниже добавляются две конфигурационные переменные,\n" " # leap_user_ESSID и leap_pass_ESSID. Когда они обе настроены на\n" " # подключаемый ESSID, мы запускаем сценарий CISCO LEAP\n" "\n" " local user pass\n" " eval user=\\\"\\$\\{leap_user_${ESSIDVAR}\\}\\\"\n" " eval pass=\\\"\\$\\{leap_pass_${ESSIDVAR}\\}\\\"\n" "\n" " if [[ -n ${user} && -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" " # Эта функция приводится в основном для полноты... Я не знаю, # что бы такое ценное в нее поместить ;-)\n" "\n" " return 0\n" "}\n" #: ../../gentoo/xml/htdocs/doc/en/handbook//hb-net-functions.xml(note):161 msgid "${ESSID} and ${ESSIDVAR} are unavailable in predown() and postdown() functions." msgstr "${ESSID} и ${ESSIDVAR} недоступны в функциях predown() и postdown()." #. 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"