[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

interfaces(5): mapping



В interfaces(5) говорится о возможности отображения физических имен
интерфейсов на логические:

mapping eth0
            script /usr/local/sbin/map-scheme
            map HOME eth0-home
            map WORK eth0-work

но рассказывается об этом крайне мало:

Stanzas beginning with the word "mapping" are used to automatically
translate a physical interface name into a logical interface specified
by an "iface"  stanza. The first line of a mapping stanza begins with
the word "mapping" followed by the names of each physical interface this
mapping should apply to. Shell globs (* and ? wildcards)  may be used
when specifying interfaces. Each mapping must specify a script, which
will be run when the mapping is applied. In addition, a mapping may
specify any number of "map" parameters that will be passed to the
script.


Может кто-нибудь объяснит, _что_ и как должен делать скрипт?
О передаваемых ему параметрах я уж и не говорю, это я еще могу
выяснить, но вот все остальное... мне сейчас проще драйверы патчить,
чтобы правильные и однообразные имена получить.

-- 
Если виртуальная память закончилась, она ненастоящая.



Reply to: