From: Sergey <a_s_y@sama.ru>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Апгрейд с 4.1 до 5.1 и persistent-net.rules
Date: Mon, 5 Sep 2011 16:56:59 +0400
Message-ID: <201109051656.59644.a_s_y@sama.ru> (raw)
In-Reply-To: <201109041246.37796.a_s_y@sama.ru>
On Sunday, September 04, 2011, Sergey wrote:
> Вопрос в том, предназначен ли write_net_rules для ручного использования...
> Может есть возможность вызвать какой-то другой скрипт, который сам всё
> сделает ? Может я его просто не нашёл ? /lib/udev/rules.d кто обрабатывает ?
> Там есть persistent-net-generator.rules, его кто обрабатывает ? Сам udev ?
В качестве быстрого хака, может кому пригодится:
for NAME in eth0 eth1 eth2 eth3 eth4 eth5 eth6 eth7 eth8 eth9 eth10 eth11 eth12; do
MAC=`ip l show $NAME 2>/dev/null|grep "link/ether"|sed "s/.*ether \(.*\) brd.*/\1/"`
[ "$MAC" == "" ] && continue
MATCHADDR=$MAC INTERFACE=$NAME /lib/udev/write_net_rules
done
--
С уважением, Сергей
a_s_y@sama.ru
next prev parent reply other threads:[~2011-09-05 12:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-03 10:26 Sergey
2011-09-03 18:38 ` Sergey
2011-09-03 18:59 ` Michael Shigorin
2011-09-04 8:46 ` Sergey
2011-09-05 12:56 ` Sergey [this message]
2011-09-05 13:01 ` Sergey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201109051656.59644.a_s_y@sama.ru \
--to=a_s_y@sama.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git