[slack-ru] Re: /etc/rc.d/rc.*

  • From: Пашев Игорь Николаевич <pashev.igor@xxxxxxxxxx>
  • To: slack-ru@xxxxxxxxxxxxx
  • Date: Tue, 16 Mar 2004 12:04:00 +0300

В сообщении от 15 Март 2004 20:32 Mikhail Pachkov написал(a):
> Ну rc.inet1 модуль грузить, как я понимаю, не должно. Этим другие
> занимаются. А может все-таки попробовать насильно загрузить модуль

Фрагнмент  /etc/rc.d/rc.inet1:
# Function to bring up an Ethernet interface.  If the interface is
# already up or does not yet exist (perhaps because the kernel driver
# is not loaded yet), do nothing.
eth_up() {
  # If the interface isn't in the kernel yet (but there's an alias for it in
  # modules.conf), then it should be loaded first:
  if ! grep eth${1}: /proc/net/dev 1> /dev/null ; then # no interface yet
    if /sbin/modprobe -c | grep -w "alias eth${1}" | grep -vw "alias eth${1} 
off" > /dev/null ; then
      /sbin/modprobe eth${1}
    fi
  fi

-- 
Никогда не было, чтобы чего-нибудь не было,
всегда было, чтобы что-нибудь было.


Other related posts: